Skip to content

CachedEntityQuery.GetEnumerator() Method

Definition

Namespace: Brine2D.ECS.Query

Returns a struct enumerator over the cached \(Entity, C1, C2\) tuples. Use with foreach for zero-allocation iteration; no delegate or closure is created.

C#
public System.Collections.Generic.List<(Brine2D.ECS.Entity Entity,T1 C1,T2 C2)>.Enumerator GetEnumerator();

Returns

System.Collections.Generic.List.Enumerator<<Entity,T1,T2>>