class Oid::Systems::RelationshipManager
- Oid::Systems::RelationshipManager
- Reference
- Object
Included Modules
- Entitas::Systems::InitializeSystem
- Oid::Components::Destroyed::Listener
- Oid::EventListener
- Oid::Services::Helper
Defined in:
oid/systems/relationship_manager.crConstructors
Instance Method Summary
-
#init
Will go through all contexts and add a
OnEntityCreated
event handler to add the root view as the default parent. -
#on_child_added(parent : Oid::RenderableEntity, child : Oid::RenderableEntity) : Nil
Recursively update children to be a ui_element
- #on_destroyed(entity, component : Oid::Components::Destroyed)
-
#on_entity_created(event : Entitas::Events::OnEntityCreated)
Hook for when a entity is created
- #register_listeners(entity : Entitas::IEntity)
- #root_view : StageEntity
Instance methods inherited from module Oid::EventListener
register_listeners(entity : Entitas::IEntity)
register_listeners
Instance methods inherited from module Oid::Components::Destroyed::Listener
on_destroyed(entity, component : Oid::Components::Destroyed)
on_destroyed
Instance methods inherited from module Oid::Services::Helper
application_service : Oid::Service::Application
application_service,
camera_service : Oid::Service::Camera
camera_service,
config_service : Oid::Service::Config
config_service,
contexts : Contexts
contexts,
input_service : Oid::Service::Input
input_service,
logger_service : Oid::Service::Logger
logger_service,
time_service : Oid::Service::Time
time_service,
view_service : Oid::Service::View
view_service,
window_service : Oid::Service::Window
window_service
Constructor Detail
Instance Method Detail
def init
#
Will go through all contexts and add a OnEntityCreated
event handler to add the root view as the default parent.
This will also add a destroyed listener so that children are destroyed when parent is.
Recursively update children to be a ui_element