Skip to content

EntityWorld.GetPoolsAssignableTo Method

Definition

Namespace: Brine2D.ECS

Overloads
GetPoolsAssignableTo(Type) Returns all non-empty pools whose component type is assignable to componentType. Used by queries for polymorphic iteration.
GetPoolsAssignableTo(Type, List<IComponentPool>) Populates result with all non-empty pools whose component type is assignable to componentType. Caller owns the list and can reuse it across rebuilds to avoid per-call allocation.

EntityWorld.GetPoolsAssignableTo(Type) Method

Returns all non-empty pools whose component type is assignable to componentType. Used by queries for polymorphic iteration.

internal System.Collections.Generic.List<Brine2D.ECS.IComponentPool> GetPoolsAssignableTo(System.Type componentType);

Parameters

componentType System.Type

Returns

System.Collections.Generic.List<IComponentPool>

EntityWorld.GetPoolsAssignableTo(Type, List\<IComponentPool>) Method

Populates result with all non-empty pools whose component type is assignable to componentType. Caller owns the list and can reuse it across rebuilds to avoid per-call allocation.

internal void GetPoolsAssignableTo(System.Type componentType, System.Collections.Generic.List<Brine2D.ECS.IComponentPool> result);

Parameters

componentType System.Type

result System.Collections.Generic.List<IComponentPool>