module Oid::PropListener::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_prop_listener : Entitas::Entity
Add a
Oid::PropListener
to the entity. -
#add_component_prop_listener(**args) : Entitas::Entity
Add a
Oid::PropListener
to the entity. -
#add_prop_listener(value : Set(Oid::Components::Prop::Listener) = Set(::Oid::Components::Prop::Listener).new) : Entitas::Entity
Add a
Oid::PropListener
to the entity. -
#del_component_prop_listener : Entitas::Entity
Delete
Oid::PropListener
from the entity. -
#del_prop_listener : Entitas::Entity
Delete
Oid::PropListener
from the entity. -
#get_component_prop_listener : Oid::PropListener
Will return the component that is a
Oid::PropListener
or raise -
#has_component_prop_listener? : Bool
Will return true if the entity has an component
Oid::PropListener
or false if it does not -
#has_prop_listener? : Bool
Will return true if the entity has an component
Oid::PropListener
or false if it does not -
#prop_listener : Oid::PropListener
Will return the component that is a
Oid::PropListener
or raise -
#prop_listener? : Bool
Alias.
-
#remove_component_prop_listener
Append.
-
#remove_prop_listener
Append.
-
#replace_component_prop_listener(component : Oid::PropListener)
Append.
-
#replace_component_prop_listener(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_prop_listener(value : Set(Oid::Components::Prop::Listener))
Will replace the current component with the new one generated from the provided arguments
-
#replace_prop_listener(component : Oid::PropListener)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::PropListener
to the entity. Returns self
to allow chainables
entity.add_component_prop_listener
Add a Oid::PropListener
to the entity. Returns self
to allow chainables
entity.add_component_prop_listener
Add a Oid::PropListener
to the entity. Returns self
to allow chainables
entity.add_prop_listener(1)
Delete Oid::PropListener
from the entity. Returns self
to allow chainables
entity.del_prop_listener
entity.prop_listener # => nil
Delete Oid::PropListener
from the entity. Returns self
to allow chainables
entity.del_prop_listener
entity.prop_listener # => nil
Will return the component that is a Oid::PropListener
or raise
Will return true if the entity has an component Oid::PropListener
or false if it does not
Will return true if the entity has an component Oid::PropListener
or false if it does not
Will return the component that is a Oid::PropListener
or raise
Append. Alias for #replace_prop_listener
Will replace the current component with the new one generated from the provided arguments
entity.replace_prop_listener
entity.get_prop_listener # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_prop_listener(value: 1)
entity.get_prop_listener # => (new_comp)
or
entity.replace_prop_listener(1)
entity.get_prop_listener # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_prop_listener(new_comp)
entity.get_prop_listener # => (new_comp)