module Oid::Components::Direction::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_direction : Entitas::Entity
Add a
Oid::Components::Direction
to the entity. -
#add_component_direction(**args) : Entitas::Entity
Add a
Oid::Components::Direction
to the entity. -
#add_direction(value : Float64) : Entitas::Entity
Add a
Oid::Components::Direction
to the entity. -
#del_component_direction : Entitas::Entity
Delete
Oid::Components::Direction
from the entity. -
#del_direction : Entitas::Entity
Delete
Oid::Components::Direction
from the entity. -
#direction : Oid::Components::Direction
Will return the component that is a
Oid::Components::Direction
or raise -
#direction? : Bool
Alias.
-
#get_component_direction : Oid::Components::Direction
Will return the component that is a
Oid::Components::Direction
or raise -
#has_component_direction? : Bool
Will return true if the entity has an component
Oid::Components::Direction
or false if it does not -
#has_direction? : Bool
Will return true if the entity has an component
Oid::Components::Direction
or false if it does not -
#remove_component_direction
Append.
-
#remove_direction
Append.
-
#replace_component_direction(component : Oid::Components::Direction)
Append.
-
#replace_component_direction(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_direction(value : Float64)
Will replace the current component with the new one generated from the provided arguments
-
#replace_direction(component : Oid::Components::Direction)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::Components::Direction
to the entity. Returns self
to allow chainables
entity.add_component_direction
Add a Oid::Components::Direction
to the entity. Returns self
to allow chainables
entity.add_component_direction
Add a Oid::Components::Direction
to the entity. Returns self
to allow chainables
entity.add_direction(1)
Delete Oid::Components::Direction
from the entity. Returns self
to allow chainables
entity.del_direction
entity.direction # => nil
Delete Oid::Components::Direction
from the entity. Returns self
to allow chainables
entity.del_direction
entity.direction # => nil
Will return the component that is a Oid::Components::Direction
or raise
Will return the component that is a Oid::Components::Direction
or raise
Will return true if the entity has an component Oid::Components::Direction
or false if it does not
Will return true if the entity has an component Oid::Components::Direction
or false if it does not
Append. Alias for #replace_direction
Will replace the current component with the new one generated from the provided arguments
entity.replace_direction
entity.get_direction # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_direction(value: 1)
entity.get_direction # => (new_comp)
or
entity.replace_direction(1)
entity.get_direction # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_direction(new_comp)
entity.get_direction # => (new_comp)