module Oid::Components::RootView::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_root_view : Entitas::Entity
Add a
Oid::Components::RootView
to the entity. -
#add_component_root_view(**args) : Entitas::Entity
Add a
Oid::Components::RootView
to the entity. -
#add_root_view : Entitas::Entity
Add a
Oid::Components::RootView
to the entity. -
#del_component_root_view : Entitas::Entity
Delete
Oid::Components::RootView
from the entity. -
#del_root_view : Entitas::Entity
Delete
Oid::Components::RootView
from the entity. -
#get_component_root_view : Oid::Components::RootView
Will return the component that is a
Oid::Components::RootView
or raise -
#has_component_root_view? : Bool
Will return true if the entity has an component
Oid::Components::RootView
or false if it does not -
#has_root_view? : Bool
Will return true if the entity has an component
Oid::Components::RootView
or false if it does not -
#remove_component_root_view
Append.
-
#remove_root_view
Append.
-
#replace_component_root_view(component : Oid::Components::RootView)
Append.
-
#replace_component_root_view(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_root_view(component : Oid::Components::RootView)
Will replace the current component with the new one provided
-
#replace_root_view
Will replace the current component with the new one generated from the provided arguments
-
#root_view : Oid::Components::RootView
Will return the component that is a
Oid::Components::RootView
or raise - #root_view=(value : Bool)
-
#root_view? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::RootView
to the entity. Returns self
to allow chainables
entity.add_component_root_view
Add a Oid::Components::RootView
to the entity. Returns self
to allow chainables
entity.add_component_root_view
Add a Oid::Components::RootView
to the entity. Returns self
to allow chainables
entity.add_root_view
Delete Oid::Components::RootView
from the entity. Returns self
to allow chainables
entity.del_root_view
entity.root_view # => nil
Delete Oid::Components::RootView
from the entity. Returns self
to allow chainables
entity.del_root_view
entity.root_view # => nil
Will return the component that is a Oid::Components::RootView
or raise
Will return true if the entity has an component Oid::Components::RootView
or false if it does not
Will return true if the entity has an component Oid::Components::RootView
or false if it does not
Append. Alias for #replace_root_view
Will replace the current component with the new one generated from the provided arguments
entity.replace_root_view
entity.get_root_view # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_root_view(new_comp)
entity.get_root_view # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_root_view
entity.get_root_view # => (new_comp)
Will return the component that is a Oid::Components::RootView
or raise