module Oid::ActorListener::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def actor_listener : Oid::ActorListener #

Will return the component that is a Oid::ActorListener or raise


def actor_listener? : Bool #

def add_actor_listener(value : Set(Oid::Components::Actor::Listener) = Set(::Oid::Components::Actor::Listener).new) : Entitas::Entity #

Add a Oid::ActorListener to the entity. Returns self to allow chainables

entity.add_actor_listener(1)

def add_component_actor_listener : Entitas::Entity #

Add a Oid::ActorListener to the entity. Returns self to allow chainables

entity.add_component_actor_listener

def add_component_actor_listener(**args) : Entitas::Entity #

Add a Oid::ActorListener to the entity. Returns self to allow chainables

entity.add_component_actor_listener

def del_actor_listener : Entitas::Entity #

Delete Oid::ActorListener from the entity. Returns self to allow chainables

entity.del_actor_listener
entity.actor_listener # => nil

def del_component_actor_listener : Entitas::Entity #

Delete Oid::ActorListener from the entity. Returns self to allow chainables

entity.del_actor_listener
entity.actor_listener # => nil

def get_component_actor_listener : Oid::ActorListener #

Will return the component that is a Oid::ActorListener or raise


def has_actor_listener? : Bool #

Will return true if the entity has an component Oid::ActorListener or false if it does not


def has_component_actor_listener? : Bool #

Will return true if the entity has an component Oid::ActorListener or false if it does not


def remove_actor_listener #

Append. Alias for #del_actor_listener


def remove_component_actor_listener #

Append. Alias for #del_component_actor_listener


def replace_actor_listener(value : Set(Oid::Components::Actor::Listener)) #

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)

def replace_actor_listener(component : Oid::ActorListener) #

Will replace the current component with the new one provided

entity.replace_component_actor_listener(new_comp)
entity.get_actor_listener # => (new_comp)

def replace_component_actor_listener(component : Oid::ActorListener) #

Append. Alias for #replace_actor_listener


def replace_component_actor_listener(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_actor_listener
entity.get_actor_listener # => (new_comp)