module Oid::HiddenRemovedListener::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_hidden_removed_listener : Entitas::Entity #

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

entity.add_component_hidden_removed_listener

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

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

entity.add_component_hidden_removed_listener

def add_hidden_removed_listener(value : Set(Oid::Components::Hidden::RemovedListener) = Set(::Oid::Components::Hidden::RemovedListener).new) : Entitas::Entity #

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

entity.add_hidden_removed_listener(1)

def del_component_hidden_removed_listener : Entitas::Entity #

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

entity.del_hidden_removed_listener
entity.hidden_removed_listener # => nil

def del_hidden_removed_listener : Entitas::Entity #

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

entity.del_hidden_removed_listener
entity.hidden_removed_listener # => nil

def get_component_hidden_removed_listener : Oid::HiddenRemovedListener #

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


def has_component_hidden_removed_listener? : Bool #

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


def has_hidden_removed_listener? : Bool #

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


def hidden_removed_listener : Oid::HiddenRemovedListener #

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


def hidden_removed_listener? : Bool #

def remove_component_hidden_removed_listener #

def remove_hidden_removed_listener #

Append. Alias for #del_hidden_removed_listener


def replace_component_hidden_removed_listener(component : Oid::HiddenRemovedListener) #

def replace_component_hidden_removed_listener(**args) #

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

entity.replace_hidden_removed_listener
entity.get_hidden_removed_listener # => (new_comp)

def replace_hidden_removed_listener(value : Set(Oid::Components::Hidden::RemovedListener)) #

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

entity.replace_hidden_removed_listener(value: 1)
entity.get_hidden_removed_listener # => (new_comp)

or

entity.replace_hidden_removed_listener(1)
entity.get_hidden_removed_listener # => (new_comp)

def replace_hidden_removed_listener(component : Oid::HiddenRemovedListener) #

Will replace the current component with the new one provided

entity.replace_component_hidden_removed_listener(new_comp)
entity.get_hidden_removed_listener # => (new_comp)