EntityStore.PidToId(long).md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.EntityStore
EntityStore.PidToId(long) Method
Return the Id for the passed entity pid.
public int PidToId(long pid);
Parameters
pid System.Int64
Returns
Remarks
Avoid using this method if store is initialized with RandomPids.
Instead use Id instead of Pid if possible
as this method performs a System.Collections.Generic.Dictionary<> lookup.