Skip to content

CachedEntityQuery.GetEnumerator() Method

Definition

Namespace: Brine2D.ECS.Query

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

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

Returns

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