@modoki/engine / index / findEntityByGuid
Function: findEntityByGuid()
findEntityByGuid(
guid,world?):any
Find an entity by its stable guid in the given world (O(1) via the guid index). Returns undefined for ''/unknown. Self-healing: on a miss it does ONE full scan, repopulates the whole guid map, and retries — so correctness holds even if a guid mint site forgot to call indexEntityGuid (the explicit wiring is just for speed).
Parameters
guid
string
world?
World = ...
Returns
any