module Oid::ActorListener::Helper
Direct including types
Defined in:
Instance Method Summary
-
#actor_listener : Oid::ActorListener
Will return the component that is a
Oid::ActorListener
or raise -
#actor_listener? : Bool
Alias.
-
#add_actor_listener(value : Set(Oid::Components::Actor::Listener) = Set(::Oid::Components::Actor::Listener).new) : Entitas::Entity
Add a
Oid::ActorListener
to the entity. -
#add_component_actor_listener : Entitas::Entity
Add a
Oid::ActorListener
to the entity. -
#add_component_actor_listener(**args) : Entitas::Entity
Add a
Oid::ActorListener
to the entity. -
#del_actor_listener : Entitas::Entity
Delete
Oid::ActorListener
from the entity. -
#del_component_actor_listener : Entitas::Entity
Delete
Oid::ActorListener
from the entity. -
#get_component_actor_listener : Oid::ActorListener
Will return the component that is a
Oid::ActorListener
or raise -
#has_actor_listener? : Bool
Will return true if the entity has an component
Oid::ActorListener
or false if it does not -
#has_component_actor_listener? : Bool
Will return true if the entity has an component
Oid::ActorListener
or false if it does not -
#remove_actor_listener
Append.
-
#remove_component_actor_listener
Append.
-
#replace_actor_listener(value : Set(Oid::Components::Actor::Listener))
Will replace the current component with the new one generated from the provided arguments
-
#replace_actor_listener(component : Oid::ActorListener)
Will replace the current component with the new one provided
-
#replace_component_actor_listener(component : Oid::ActorListener)
Append.
-
#replace_component_actor_listener(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Will return the component that is a Oid::ActorListener
or raise
Add a Oid::ActorListener
to the entity. Returns self
to allow chainables
entity.add_actor_listener(1)
Add a Oid::ActorListener
to the entity. Returns self
to allow chainables
entity.add_component_actor_listener
Add a Oid::ActorListener
to the entity. Returns self
to allow chainables
entity.add_component_actor_listener
Delete Oid::ActorListener
from the entity. Returns self
to allow chainables
entity.del_actor_listener
entity.actor_listener # => nil
Delete Oid::ActorListener
from the entity. Returns self
to allow chainables
entity.del_actor_listener
entity.actor_listener # => nil
Will return the component that is a Oid::ActorListener
or raise
Will return true if the entity has an component Oid::ActorListener
or false if it does not
Will return true if the entity has an component Oid::ActorListener
or false if it does not
Will replace the current component with the new one generated from the provided arguments
entity.replace_actor_listener(value: 1)
entity.get_actor_listener # => (new_comp)
or
entity.replace_actor_listener(1)
entity.get_actor_listener # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_actor_listener(new_comp)
entity.get_actor_listener # => (new_comp)
Append. Alias for #replace_actor_listener
Will replace the current component with the new one generated from the provided arguments
entity.replace_actor_listener
entity.get_actor_listener # => (new_comp)