IEntityWorld.GetEntitiesWithComponent() Method
Definition¶
Namespace: Brine2D.ECS
Gets all entities with a specific component type.
System.Collections.Generic.IEnumerable<Brine2D.ECS.Entity> GetEntitiesWithComponent<T>()
where T : Brine2D.ECS.Component;
Type parameters¶
T
Returns¶
System.Collections.Generic.IEnumerable<Entity>
Remarks¶
Returns a materialized list. For per-frame use in systems, prefer CreateCachedQuery<T1>() which rebuilds only when components change.