module Oid::Components::ViewElement::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_view_element : Entitas::Entity
Add a
Oid::Components::ViewElement
to the entity. -
#add_component_view_element(**args) : Entitas::Entity
Add a
Oid::Components::ViewElement
to the entity. -
#add_view_element(**args) : Entitas::Entity
Add a
Oid::Components::ViewElement
to the entity. -
#del_component_view_element : Entitas::Entity
Delete
Oid::Components::ViewElement
from the entity. -
#del_view_element : Entitas::Entity
Delete
Oid::Components::ViewElement
from the entity. -
#get_component_view_element : Oid::Components::ViewElement
Will return the component that is a
Oid::Components::ViewElement
or raise -
#has_component_view_element? : Bool
Will return true if the entity has an component
Oid::Components::ViewElement
or false if it does not -
#has_view_element? : Bool
Will return true if the entity has an component
Oid::Components::ViewElement
or false if it does not -
#remove_component_view_element
Append.
-
#remove_view_element
Append.
-
#replace_component_view_element(component : Oid::Components::ViewElement)
Append.
-
#replace_component_view_element(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_view_element(component : Oid::Components::ViewElement)
Will replace the current component with the new one provided
-
#replace_view_element(**args)
Will replace the current component with the new one generated from the provided arguments
-
#view_element : Oid::Components::ViewElement
Will return the component that is a
Oid::Components::ViewElement
or raise -
#view_element? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::ViewElement
to the entity. Returns self
to allow chainables
entity.add_component_view_element
Add a Oid::Components::ViewElement
to the entity. Returns self
to allow chainables
entity.add_component_view_element
Add a Oid::Components::ViewElement
to the entity. Returns self
to allow chainables
entity.add_view_element
Delete Oid::Components::ViewElement
from the entity. Returns self
to allow chainables
entity.del_view_element
entity.view_element # => nil
Delete Oid::Components::ViewElement
from the entity. Returns self
to allow chainables
entity.del_view_element
entity.view_element # => nil
Will return the component that is a Oid::Components::ViewElement
or raise
Will return true if the entity has an component Oid::Components::ViewElement
or false if it does not
Will return true if the entity has an component Oid::Components::ViewElement
or false if it does not
Append. Alias for #replace_view_element
Will replace the current component with the new one generated from the provided arguments
entity.replace_view_element
entity.get_view_element # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_view_element(new_comp)
entity.get_view_element # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_view_element
entity.get_view_element # => (new_comp)
Will return the component that is a Oid::Components::ViewElement
or raise