module Oid::Components::Destroyed::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_destroyed : Entitas::Entity #

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

entity.add_component_destroyed

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

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

entity.add_component_destroyed

def add_destroyed : Entitas::Entity #

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

entity.add_destroyed

def add_destroyed_listener(value : Oid::Components::Destroyed::Listener) #

def del_component_destroyed : Entitas::Entity #

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

entity.del_destroyed
entity.destroyed # => nil

def del_destroyed : Entitas::Entity #

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

entity.del_destroyed
entity.destroyed # => nil

def destroyed : Oid::Components::Destroyed #

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


def destroyed=(value : Bool) #

def destroyed? : Bool #

Alias. See #has_destroyed?


def get_component_destroyed : Oid::Components::Destroyed #

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


def has_component_destroyed? : Bool #

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


def has_destroyed? : Bool #

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


def remove_component_destroyed #

Append. Alias for #del_component_destroyed


def remove_destroyed #

Append. Alias for #del_destroyed


def remove_destroyed_listener(value : Oid::Components::Destroyed::Listener, remove_comp_when_empty = false) #

def replace_component_destroyed(component : Oid::Components::Destroyed) #

Append. Alias for #replace_destroyed


def replace_component_destroyed(**args) #

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

entity.replace_destroyed
entity.get_destroyed # => (new_comp)

def replace_destroyed(component : Oid::Components::Destroyed) #

Will replace the current component with the new one provided

entity.replace_component_destroyed(new_comp)
entity.get_destroyed # => (new_comp)

def replace_destroyed #

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

entity.replace_destroyed
entity.get_destroyed # => (new_comp)