module Oid::Components::Interactive::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_interactive : Entitas::Entity
Add a
Oid::Components::Interactive
to the entity. -
#add_component_interactive(**args) : Entitas::Entity
Add a
Oid::Components::Interactive
to the entity. -
#add_interactive : Entitas::Entity
Add a
Oid::Components::Interactive
to the entity. -
#del_component_interactive : Entitas::Entity
Delete
Oid::Components::Interactive
from the entity. -
#del_interactive : Entitas::Entity
Delete
Oid::Components::Interactive
from the entity. -
#get_component_interactive : Oid::Components::Interactive
Will return the component that is a
Oid::Components::Interactive
or raise -
#has_component_interactive? : Bool
Will return true if the entity has an component
Oid::Components::Interactive
or false if it does not -
#has_interactive? : Bool
Will return true if the entity has an component
Oid::Components::Interactive
or false if it does not -
#interactive : Oid::Components::Interactive
Will return the component that is a
Oid::Components::Interactive
or raise - #interactive=(value : Bool)
-
#interactive? : Bool
Alias.
-
#remove_component_interactive
Append.
-
#remove_interactive
Append.
-
#replace_component_interactive(component : Oid::Components::Interactive)
Append.
-
#replace_component_interactive(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_interactive(component : Oid::Components::Interactive)
Will replace the current component with the new one provided
-
#replace_interactive
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Interactive
to the entity. Returns self
to allow chainables
entity.add_component_interactive
Add a Oid::Components::Interactive
to the entity. Returns self
to allow chainables
entity.add_component_interactive
Add a Oid::Components::Interactive
to the entity. Returns self
to allow chainables
entity.add_interactive
Delete Oid::Components::Interactive
from the entity. Returns self
to allow chainables
entity.del_interactive
entity.interactive # => nil
Delete Oid::Components::Interactive
from the entity. Returns self
to allow chainables
entity.del_interactive
entity.interactive # => nil
Will return the component that is a Oid::Components::Interactive
or raise
Will return true if the entity has an component Oid::Components::Interactive
or false if it does not
Will return true if the entity has an component Oid::Components::Interactive
or false if it does not
Will return the component that is a Oid::Components::Interactive
or raise
Append. Alias for #replace_interactive
Will replace the current component with the new one generated from the provided arguments
entity.replace_interactive
entity.get_interactive # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_interactive(new_comp)
entity.get_interactive # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_interactive
entity.get_interactive # => (new_comp)