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

System.Int32

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.

Contents

  1. 0.1Friflo.Engine.ECS.EntityStore
  2. 1EntityStore.PidToId(long) Method
  3. 1.1Remarks