module Oid::Components::Destroyed::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_destroyed : Entitas::Entity
Add a
Oid::Components::Destroyed
to the entity. -
#add_component_destroyed(**args) : Entitas::Entity
Add a
Oid::Components::Destroyed
to the entity. -
#add_destroyed : Entitas::Entity
Add a
Oid::Components::Destroyed
to the entity. - #add_destroyed_listener(value : Oid::Components::Destroyed::Listener)
-
#del_component_destroyed : Entitas::Entity
Delete
Oid::Components::Destroyed
from the entity. -
#del_destroyed : Entitas::Entity
Delete
Oid::Components::Destroyed
from the entity. -
#destroyed : Oid::Components::Destroyed
Will return the component that is a
Oid::Components::Destroyed
or raise - #destroyed=(value : Bool)
-
#destroyed? : Bool
Alias.
-
#get_component_destroyed : Oid::Components::Destroyed
Will return the component that is a
Oid::Components::Destroyed
or raise -
#has_component_destroyed? : Bool
Will return true if the entity has an component
Oid::Components::Destroyed
or false if it does not -
#has_destroyed? : Bool
Will return true if the entity has an component
Oid::Components::Destroyed
or false if it does not -
#remove_component_destroyed
Append.
-
#remove_destroyed
Append.
- #remove_destroyed_listener(value : Oid::Components::Destroyed::Listener, remove_comp_when_empty = false)
-
#replace_component_destroyed(component : Oid::Components::Destroyed)
Append.
-
#replace_component_destroyed(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_destroyed(component : Oid::Components::Destroyed)
Will replace the current component with the new one provided
-
#replace_destroyed
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Destroyed
to the entity. Returns self
to allow chainables
entity.add_component_destroyed
Add a Oid::Components::Destroyed
to the entity. Returns self
to allow chainables
entity.add_component_destroyed
Add a Oid::Components::Destroyed
to the entity. Returns self
to allow chainables
entity.add_destroyed
Delete Oid::Components::Destroyed
from the entity. Returns self
to allow chainables
entity.del_destroyed
entity.destroyed # => nil
Delete Oid::Components::Destroyed
from the entity. Returns self
to allow chainables
entity.del_destroyed
entity.destroyed # => nil
Will return the component that is a Oid::Components::Destroyed
or raise
Will return the component that is a Oid::Components::Destroyed
or raise
Will return true if the entity has an component Oid::Components::Destroyed
or false if it does not
Will return true if the entity has an component Oid::Components::Destroyed
or false if it does not
Append. Alias for #replace_destroyed
Will replace the current component with the new one generated from the provided arguments
entity.replace_destroyed
entity.get_destroyed # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_destroyed(new_comp)
entity.get_destroyed # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_destroyed
entity.get_destroyed # => (new_comp)