module Oid::Components::PositionType::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_position_type : Entitas::Entity
Add a
Oid::Components::PositionType
to the entity. -
#add_component_position_type(**args) : Entitas::Entity
Add a
Oid::Components::PositionType
to the entity. -
#add_position_type(value : Oid::Enum::Position = Oid::Enum::Position::Relative) : Entitas::Entity
Add a
Oid::Components::PositionType
to the entity. -
#del_component_position_type : Entitas::Entity
Delete
Oid::Components::PositionType
from the entity. -
#del_position_type : Entitas::Entity
Delete
Oid::Components::PositionType
from the entity. -
#get_component_position_type : Oid::Components::PositionType
Will return the component that is a
Oid::Components::PositionType
or raise -
#has_component_position_type? : Bool
Will return true if the entity has an component
Oid::Components::PositionType
or false if it does not -
#has_position_type? : Bool
Will return true if the entity has an component
Oid::Components::PositionType
or false if it does not -
#position_type : Oid::Components::PositionType
Will return the component that is a
Oid::Components::PositionType
or raise -
#position_type? : Bool
Alias.
-
#remove_component_position_type
Append.
-
#remove_position_type
Append.
-
#replace_component_position_type(component : Oid::Components::PositionType)
Append.
-
#replace_component_position_type(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_position_type(value : Oid::Enum::Position)
Will replace the current component with the new one generated from the provided arguments
-
#replace_position_type(component : Oid::Components::PositionType)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::Components::PositionType
to the entity. Returns self
to allow chainables
entity.add_component_position_type
Add a Oid::Components::PositionType
to the entity. Returns self
to allow chainables
entity.add_component_position_type
Add a Oid::Components::PositionType
to the entity. Returns self
to allow chainables
entity.add_position_type(1)
Delete Oid::Components::PositionType
from the entity. Returns self
to allow chainables
entity.del_position_type
entity.position_type # => nil
Delete Oid::Components::PositionType
from the entity. Returns self
to allow chainables
entity.del_position_type
entity.position_type # => nil
Will return the component that is a Oid::Components::PositionType
or raise
Will return true if the entity has an component Oid::Components::PositionType
or false if it does not
Will return true if the entity has an component Oid::Components::PositionType
or false if it does not
Will return the component that is a Oid::Components::PositionType
or raise
Append. Alias for #replace_position_type
Will replace the current component with the new one generated from the provided arguments
entity.replace_position_type
entity.get_position_type # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_position_type(value: 1)
entity.get_position_type # => (new_comp)
or
entity.replace_position_type(1)
entity.get_position_type # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_position_type(new_comp)
entity.get_position_type # => (new_comp)