Entitas::Helper::ComponentPools
Instance methods
clear_component_pool(index : Entitas::Component::ComponentTypes)
Sourcecomponent_index_value(index) : Int32
Sourcecomponent_pool(index : Int32) : ComponentPool
Returns the ComponentPool for the specified component index.
component_pools is set by the context which created the entity and
is used to reuse removed components.
Removed components will be pushed to the componentPool.
Use entity.create_component(index, type) to get a new or
reusable component from the ComponentPool.
component_pools
component_pools is set by the context which created the entity and is used to reuse removed components. Removed components will be pushed to the componentPool. Use entity.CreateComponent(index, type) to get a new or reusable component from the componentPool. Use entity.GetComponentPool(index) to get a componentPool for a specific component index.