module Oid::Components::Hidden::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_hidden : Entitas::Entity #

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

entity.add_component_hidden

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

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

entity.add_component_hidden

def add_hidden : Entitas::Entity #

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

entity.add_hidden

def add_hidden_listener(value : Oid::Components::Hidden::Listener) #

def add_hidden_removed_listener(value : Oid::Components::Hidden::RemovedListener) #

def del_component_hidden : Entitas::Entity #

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

entity.del_hidden
entity.hidden # => nil

def del_hidden : Entitas::Entity #

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

entity.del_hidden
entity.hidden # => nil

def get_component_hidden : Oid::Components::Hidden #

Will return the component that is a Oid::Components::Hidden or raise


def has_component_hidden? : Bool #

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


def has_hidden? : Bool #

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


def hidden : Oid::Components::Hidden #

Will return the component that is a Oid::Components::Hidden or raise


def hidden=(value : Bool) #

def hidden? : Bool #

Alias. See #has_hidden?


def remove_component_hidden #

Append. Alias for #del_component_hidden


def remove_hidden #

Append. Alias for #del_hidden


def remove_hidden_listener(value : Oid::Components::Hidden::Listener, remove_comp_when_empty = false) #

def remove_hidden_removed_listener(value : Oid::Components::Hidden::RemovedListener, remove_comp_when_empty = false) #

def replace_component_hidden(component : Oid::Components::Hidden) #

Append. Alias for #replace_hidden


def replace_component_hidden(**args) #

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

entity.replace_hidden
entity.get_hidden # => (new_comp)

def replace_hidden(component : Oid::Components::Hidden) #

Will replace the current component with the new one provided

entity.replace_component_hidden(new_comp)
entity.get_hidden # => (new_comp)

def replace_hidden #

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

entity.replace_hidden
entity.get_hidden # => (new_comp)