module Oid::Components::UiElement::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_ui_element : Entitas::Entity
Add a
Oid::Components::UiElement
to the entity. -
#add_component_ui_element(**args) : Entitas::Entity
Add a
Oid::Components::UiElement
to the entity. -
#add_ui_element : Entitas::Entity
Add a
Oid::Components::UiElement
to the entity. -
#del_component_ui_element : Entitas::Entity
Delete
Oid::Components::UiElement
from the entity. -
#del_ui_element : Entitas::Entity
Delete
Oid::Components::UiElement
from the entity. -
#get_component_ui_element : Oid::Components::UiElement
Will return the component that is a
Oid::Components::UiElement
or raise -
#has_component_ui_element? : Bool
Will return true if the entity has an component
Oid::Components::UiElement
or false if it does not -
#has_ui_element? : Bool
Will return true if the entity has an component
Oid::Components::UiElement
or false if it does not -
#remove_component_ui_element
Append.
-
#remove_ui_element
Append.
-
#replace_component_ui_element(component : Oid::Components::UiElement)
Append.
-
#replace_component_ui_element(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_ui_element(component : Oid::Components::UiElement)
Will replace the current component with the new one provided
-
#replace_ui_element
Will replace the current component with the new one generated from the provided arguments
-
#ui_element : Oid::Components::UiElement
Will return the component that is a
Oid::Components::UiElement
or raise - #ui_element=(value : Bool)
-
#ui_element? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::UiElement
to the entity. Returns self
to allow chainables
entity.add_component_ui_element
Add a Oid::Components::UiElement
to the entity. Returns self
to allow chainables
entity.add_component_ui_element
Add a Oid::Components::UiElement
to the entity. Returns self
to allow chainables
entity.add_ui_element
Delete Oid::Components::UiElement
from the entity. Returns self
to allow chainables
entity.del_ui_element
entity.ui_element # => nil
Delete Oid::Components::UiElement
from the entity. Returns self
to allow chainables
entity.del_ui_element
entity.ui_element # => nil
Will return the component that is a Oid::Components::UiElement
or raise
Will return true if the entity has an component Oid::Components::UiElement
or false if it does not
Will return true if the entity has an component Oid::Components::UiElement
or false if it does not
Append. Alias for #replace_ui_element
Will replace the current component with the new one generated from the provided arguments
entity.replace_ui_element
entity.get_ui_element # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_ui_element(new_comp)
entity.get_ui_element # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_ui_element
entity.get_ui_element # => (new_comp)
Will return the component that is a Oid::Components::UiElement
or raise