module

Entitas::Helper::ComponentPools

Instance methods

clear_component_pool(index : Int32)

Clears the ComponentPool at the specified index.

Source
clear_component_pool(index : Entitas::Component::ComponentTypes)
Source
clear_component_pools

Clears all ComponentPools.

Source
component_index_value(index) : Int32
Source
component_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.

Source
component_pool(index : Entitas::Component::ComponentTypes) : ComponentPool
Source
component_pool(index : Entitas::Component::Index) : ComponentPool
Source
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.

Source