ComponentPool.GetTypedSnapshot() Method
Definition¶
Namespace: Brine2D.ECS
Creates a strongly-typed ArrayPool snapshot for iteration. Avoids the System.Array boxing round-trip of GetSnapshot. MUST call Brine2D.ECS.ComponentPool<>.ReturnTypedSnapshot(System.ValueTuple{System.Int64,@0}[]) in a finally block.
public ((long EntityId,T Component)[] Snapshot,int Length) GetTypedSnapshot();