module Oid::Components::Config::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_config : Entitas::Entity #

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

entity.add_component_config

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

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

entity.add_component_config

def add_config : Entitas::Entity #

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

entity.add_config

def config : Oid::Components::Config #

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


def config=(value : Bool) #

def config? : Bool #

Alias. See #has_config?


def del_component_config : Entitas::Entity #

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

entity.del_config
entity.config # => nil

def del_config : Entitas::Entity #

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

entity.del_config
entity.config # => nil

def get_component_config : Oid::Components::Config #

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


def has_component_config? : Bool #

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


def has_config? : Bool #

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


def remove_component_config #

Append. Alias for #del_component_config


def remove_config #

Append. Alias for #del_config


def replace_component_config(component : Oid::Components::Config) #

Append. Alias for #replace_config


def replace_component_config(**args) #

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

entity.replace_config
entity.get_config # => (new_comp)

def replace_config(component : Oid::Components::Config) #

Will replace the current component with the new one provided

entity.replace_component_config(new_comp)
entity.get_config # => (new_comp)

def replace_config #

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

entity.replace_config
entity.get_config # => (new_comp)