module Oid::Components::View::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_view : Entitas::Entity
Add a
Oid::Components::View
to the entity. -
#add_component_view(**args) : Entitas::Entity
Add a
Oid::Components::View
to the entity. -
#add_view(value : Oid::Controller::View) : Entitas::Entity
Add a
Oid::Components::View
to the entity. -
#del_component_view : Entitas::Entity
Delete
Oid::Components::View
from the entity. -
#del_view : Entitas::Entity
Delete
Oid::Components::View
from the entity. -
#get_component_view : Oid::Components::View
Will return the component that is a
Oid::Components::View
or raise -
#has_component_view? : Bool
Will return true if the entity has an component
Oid::Components::View
or false if it does not -
#has_view? : Bool
Will return true if the entity has an component
Oid::Components::View
or false if it does not -
#remove_component_view
Append.
-
#remove_view
Append.
-
#replace_component_view(component : Oid::Components::View)
Append.
-
#replace_component_view(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_view(component : Oid::Components::View)
Will replace the current component with the new one provided
-
#replace_view(value : Oid::Controller::View)
Will replace the current component with the new one generated from the provided arguments
-
#view : Oid::Components::View
Will return the component that is a
Oid::Components::View
or raise -
#view? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::View
to the entity. Returns self
to allow chainables
entity.add_component_view
Add a Oid::Components::View
to the entity. Returns self
to allow chainables
entity.add_component_view
Add a Oid::Components::View
to the entity. Returns self
to allow chainables
entity.add_view(1)
Delete Oid::Components::View
from the entity. Returns self
to allow chainables
entity.del_view
entity.view # => nil
Delete Oid::Components::View
from the entity. Returns self
to allow chainables
entity.del_view
entity.view # => nil
Will return the component that is a Oid::Components::View
or raise
Will return true if the entity has an component Oid::Components::View
or false if it does not
Will return true if the entity has an component Oid::Components::View
or false if it does not
Will replace the current component with the new one generated from the provided arguments
entity.replace_view
entity.get_view # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_view(new_comp)
entity.get_view # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_view(value: 1)
entity.get_view # => (new_comp)
or
entity.replace_view(1)
entity.get_view # => (new_comp)
Will return the component that is a Oid::Components::View
or raise