module Oid::Components::Config::Helper
Defined in:
Instance Method Summary
-
#add_component_config : Entitas::Entity
Add a
Oid::Components::Config
to the entity. -
#add_component_config(**args) : Entitas::Entity
Add a
Oid::Components::Config
to the entity. -
#add_config : Entitas::Entity
Add a
Oid::Components::Config
to the entity. -
#config : Oid::Components::Config
Will return the component that is a
Oid::Components::Config
or raise - #config=(value : Bool)
-
#config? : Bool
Alias.
-
#del_component_config : Entitas::Entity
Delete
Oid::Components::Config
from the entity. -
#del_config : Entitas::Entity
Delete
Oid::Components::Config
from the entity. -
#get_component_config : Oid::Components::Config
Will return the component that is a
Oid::Components::Config
or raise -
#has_component_config? : Bool
Will return true if the entity has an component
Oid::Components::Config
or false if it does not -
#has_config? : Bool
Will return true if the entity has an component
Oid::Components::Config
or false if it does not -
#remove_component_config
Append.
-
#remove_config
Append.
-
#replace_component_config(component : Oid::Components::Config)
Append.
-
#replace_component_config(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_config(component : Oid::Components::Config)
Will replace the current component with the new one provided
-
#replace_config
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Config
to the entity. Returns self
to allow chainables
entity.add_component_config
Add a Oid::Components::Config
to the entity. Returns self
to allow chainables
entity.add_component_config
Add a Oid::Components::Config
to the entity. Returns self
to allow chainables
entity.add_config
Will return the component that is a Oid::Components::Config
or raise
Delete Oid::Components::Config
from the entity. Returns self
to allow chainables
entity.del_config
entity.config # => nil
Delete Oid::Components::Config
from the entity. Returns self
to allow chainables
entity.del_config
entity.config # => nil
Will return the component that is a Oid::Components::Config
or raise
Will return true if the entity has an component Oid::Components::Config
or false if it does not
Will return true if the entity has an component Oid::Components::Config
or false if it does not
Append. Alias for #replace_config
Will replace the current component with the new one generated from the provided arguments
entity.replace_config
entity.get_config # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_config(new_comp)
entity.get_config # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_config
entity.get_config # => (new_comp)