Entitas::IContext
Constants
Log = ::Log.for(self)
Instance methods
add_entity_index(entity_index : Entitas::IEntityIndex)
Sourceclear_component_pool(index : Int32)
Sourceclear_component_pools
Sourcecomponent_index(index) : Entitas::Component::Index
Sourcecomponent_index_class(index) : Entitas::Component::ComponentTypes
Sourcecomponent_index_value(index) : Int32
Sourcecomponent_pools
Sourcecreate_entity
Sourcedestroy_all_entities
Sourceeach
Sourceentity_factory
Sourceget_entities
Sourcehas_entity?(entity : TEntity) : Bool
Sourceon_entity_created
Will append the &block to the #on_entity_created_event_hooks array
on_entity_created do |event|
# do something with event
end
on_entity_created_event_hooks
Array of event hooks to trigger when an Entitas::Events::OnEntityCreated is emitted
on_entity_destroyed
Will append the &block to the #on_entity_destroyed_event_hooks array
on_entity_destroyed do |event|
# do something with event
end
on_entity_destroyed_event_hooks
Array of event hooks to trigger when an Entitas::Events::OnEntityDestroyed is emitted
on_entity_will_be_destroyed
Will append the &block to the #on_entity_will_be_destroyed_event_hooks array
on_entity_will_be_destroyed do |event|
# do something with event
end
on_entity_will_be_destroyed_event_hooks
Array of event hooks to trigger when an Entitas::Events::OnEntityWillBeDestroyed is emitted
on_group_created
Will append the &block to the #on_group_created_event_hooks array
on_group_created do |event|
# do something with event
end
on_group_created_event_hooks
Array of event hooks to trigger when an Entitas::Events::OnGroupCreated is emitted
receive_on_entity_created_event(event : Entitas::Events::OnEntityCreated)
receive_on_entity_destroyed_event(event : Entitas::Events::OnEntityDestroyed)
receive_on_entity_will_be_destroyed_event(event : Entitas::Events::OnEntityWillBeDestroyed)
receive_on_group_created_event(event : Entitas::Events::OnGroupCreated)
remove_all_event_handlers
Sourcereset
Sourcereset_creation_index
Sourcesize
Sourceto_json(json : JSON::Builder)
Sourcetotal_components
Source