IEntityWorld.GetEntitiesWithComponents Method
Definition
Namespace: Brine2D.ECS
| Overloads | |
|---|---|
| GetEntitiesWithComponents<T1,T2,T3,T4,T5>() | Gets all entities that have all five specified component types. Iterates the smallest pool to minimise cross-resolves. |
| GetEntitiesWithComponents<T1,T2,T3,T4>() | Gets all entities that have all four specified component types. Iterates the smallest pool to minimise cross-resolves. |
| GetEntitiesWithComponents<T1,T2,T3>() | Gets all entities that have all three specified component types. Iterates the smallest pool to minimise cross-resolves. |
| GetEntitiesWithComponents<T1,T2>() | Gets all entities that have both specified component types. Iterates the smaller pool to minimise cross-resolves. |
IEntityWorld.GetEntitiesWithComponents\<T1,T2,T3,T4,T5>() Method
Gets all entities that have all five specified component types. Iterates the smallest pool to minimise cross-resolves.
System.Collections.Generic.IEnumerable<Brine2D.ECS.Entity> GetEntitiesWithComponents<T1,T2,T3,T4,T5>()
where T1 : Brine2D.ECS.Component
where T2 : Brine2D.ECS.Component
where T3 : Brine2D.ECS.Component
where T4 : Brine2D.ECS.Component
where T5 : Brine2D.ECS.Component;
Type parameters
T1
T2
T3
T4
T5
Returns
System.Collections.Generic.IEnumerable<Entity>
Remarks
Returns a materialized list. For per-frame use in systems, prefer Brine2D.ECS.IEntityWorld.CreateCachedQuery<>
IEntityWorld.GetEntitiesWithComponents\<T1,T2,T3,T4>() Method
Gets all entities that have all four specified component types. Iterates the smallest pool to minimise cross-resolves.
System.Collections.Generic.IEnumerable<Brine2D.ECS.Entity> GetEntitiesWithComponents<T1,T2,T3,T4>()
where T1 : Brine2D.ECS.Component
where T2 : Brine2D.ECS.Component
where T3 : Brine2D.ECS.Component
where T4 : Brine2D.ECS.Component;
Type parameters
T1
T2
T3
T4
Returns
System.Collections.Generic.IEnumerable<Entity>
Remarks
Returns a materialized list. For per-frame use in systems, prefer Brine2D.ECS.IEntityWorld.CreateCachedQuery<>
IEntityWorld.GetEntitiesWithComponents\<T1,T2,T3>() Method
Gets all entities that have all three specified component types. Iterates the smallest pool to minimise cross-resolves.
System.Collections.Generic.IEnumerable<Brine2D.ECS.Entity> GetEntitiesWithComponents<T1,T2,T3>()
where T1 : Brine2D.ECS.Component
where T2 : Brine2D.ECS.Component
where T3 : Brine2D.ECS.Component;
Type parameters
T1
T2
T3
Returns
System.Collections.Generic.IEnumerable<Entity>
Remarks
Returns a materialized list. For per-frame use in systems, prefer Brine2D.ECS.IEntityWorld.CreateCachedQuery<>
IEntityWorld.GetEntitiesWithComponents\<T1,T2>() Method
Gets all entities that have both specified component types. Iterates the smaller pool to minimise cross-resolves.
System.Collections.Generic.IEnumerable<Brine2D.ECS.Entity> GetEntitiesWithComponents<T1,T2>()
where T1 : Brine2D.ECS.Component
where T2 : Brine2D.ECS.Component;
Type parameters
T1
T2
Returns
System.Collections.Generic.IEnumerable<Entity>
Remarks
Returns a materialized list. For per-frame use in systems, prefer Brine2D.ECS.IEntityWorld.CreateCachedQuery<>