module Oid::HiddenListener::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_hidden_listener : Entitas::Entity #

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

entity.add_component_hidden_listener

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

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

entity.add_component_hidden_listener

def add_hidden_listener(value : Set(Oid::Components::Hidden::Listener) = Set(::Oid::Components::Hidden::Listener).new) : Entitas::Entity #

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

entity.add_hidden_listener(1)

def del_component_hidden_listener : Entitas::Entity #

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

entity.del_hidden_listener
entity.hidden_listener # => nil

def del_hidden_listener : Entitas::Entity #

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

entity.del_hidden_listener
entity.hidden_listener # => nil

def get_component_hidden_listener : Oid::HiddenListener #

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


def has_component_hidden_listener? : Bool #

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


def has_hidden_listener? : Bool #

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


def hidden_listener : Oid::HiddenListener #

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


def hidden_listener? : Bool #

def remove_component_hidden_listener #

Append. Alias for #del_component_hidden_listener


def remove_hidden_listener #

Append. Alias for #del_hidden_listener


def replace_component_hidden_listener(component : Oid::HiddenListener) #

Append. Alias for #replace_hidden_listener


def replace_component_hidden_listener(**args) #

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

entity.replace_hidden_listener
entity.get_hidden_listener # => (new_comp)

def replace_hidden_listener(value : Set(Oid::Components::Hidden::Listener)) #

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

entity.replace_hidden_listener(value: 1)
entity.get_hidden_listener # => (new_comp)

or

entity.replace_hidden_listener(1)
entity.get_hidden_listener # => (new_comp)

def replace_hidden_listener(component : Oid::HiddenListener) #

Will replace the current component with the new one provided

entity.replace_component_hidden_listener(new_comp)
entity.get_hidden_listener # => (new_comp)