module Oid::DestroyedListener::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_destroyed_listener : Entitas::Entity
Add a
Oid::DestroyedListener
to the entity. -
#add_component_destroyed_listener(**args) : Entitas::Entity
Add a
Oid::DestroyedListener
to the entity. -
#add_destroyed_listener(value : Set(Oid::Components::Destroyed::Listener) = Set(::Oid::Components::Destroyed::Listener).new) : Entitas::Entity
Add a
Oid::DestroyedListener
to the entity. -
#del_component_destroyed_listener : Entitas::Entity
Delete
Oid::DestroyedListener
from the entity. -
#del_destroyed_listener : Entitas::Entity
Delete
Oid::DestroyedListener
from the entity. -
#destroyed_listener : Oid::DestroyedListener
Will return the component that is a
Oid::DestroyedListener
or raise -
#destroyed_listener? : Bool
Alias.
-
#get_component_destroyed_listener : Oid::DestroyedListener
Will return the component that is a
Oid::DestroyedListener
or raise -
#has_component_destroyed_listener? : Bool
Will return true if the entity has an component
Oid::DestroyedListener
or false if it does not -
#has_destroyed_listener? : Bool
Will return true if the entity has an component
Oid::DestroyedListener
or false if it does not -
#remove_component_destroyed_listener
Append.
-
#remove_destroyed_listener
Append.
-
#replace_component_destroyed_listener(component : Oid::DestroyedListener)
Append.
-
#replace_component_destroyed_listener(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_destroyed_listener(value : Set(Oid::Components::Destroyed::Listener))
Will replace the current component with the new one generated from the provided arguments
-
#replace_destroyed_listener(component : Oid::DestroyedListener)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::DestroyedListener
to the entity. Returns self
to allow chainables
entity.add_component_destroyed_listener
Add a Oid::DestroyedListener
to the entity. Returns self
to allow chainables
entity.add_component_destroyed_listener
Add a Oid::DestroyedListener
to the entity. Returns self
to allow chainables
entity.add_destroyed_listener(1)
Delete Oid::DestroyedListener
from the entity. Returns self
to allow chainables
entity.del_destroyed_listener
entity.destroyed_listener # => nil
Delete Oid::DestroyedListener
from the entity. Returns self
to allow chainables
entity.del_destroyed_listener
entity.destroyed_listener # => nil
Will return the component that is a Oid::DestroyedListener
or raise
Will return the component that is a Oid::DestroyedListener
or raise
Will return true if the entity has an component Oid::DestroyedListener
or false if it does not
Will return true if the entity has an component Oid::DestroyedListener
or false if it does not
Append. Alias for #replace_destroyed_listener
Will replace the current component with the new one generated from the provided arguments
entity.replace_destroyed_listener
entity.get_destroyed_listener # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_destroyed_listener(value: 1)
entity.get_destroyed_listener # => (new_comp)
or
entity.replace_destroyed_listener(1)
entity.get_destroyed_listener # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_destroyed_listener(new_comp)
entity.get_destroyed_listener # => (new_comp)