module Oid::Components::Asset::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_asset(**args) : Entitas::Entity
Add a
Oid::Components::Asset
to the entity. -
#add_component_asset : Entitas::Entity
Add a
Oid::Components::Asset
to the entity. -
#add_component_asset(**args) : Entitas::Entity
Add a
Oid::Components::Asset
to the entity. -
#asset : Oid::Components::Asset
Will return the component that is a
Oid::Components::Asset
or raise -
#asset? : Bool
Alias.
-
#del_asset : Entitas::Entity
Delete
Oid::Components::Asset
from the entity. -
#del_component_asset : Entitas::Entity
Delete
Oid::Components::Asset
from the entity. -
#get_component_asset : Oid::Components::Asset
Will return the component that is a
Oid::Components::Asset
or raise -
#has_asset? : Bool
Will return true if the entity has an component
Oid::Components::Asset
or false if it does not -
#has_component_asset? : Bool
Will return true if the entity has an component
Oid::Components::Asset
or false if it does not -
#remove_asset
Append.
-
#remove_component_asset
Append.
-
#replace_asset(component : Oid::Components::Asset)
Will replace the current component with the new one provided
-
#replace_asset(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_component_asset(component : Oid::Components::Asset)
Append.
-
#replace_component_asset(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Asset
to the entity. Returns self
to allow chainables
entity.add_asset
Add a Oid::Components::Asset
to the entity. Returns self
to allow chainables
entity.add_component_asset
Add a Oid::Components::Asset
to the entity. Returns self
to allow chainables
entity.add_component_asset
Will return the component that is a Oid::Components::Asset
or raise
Delete Oid::Components::Asset
from the entity. Returns self
to allow chainables
entity.del_asset
entity.asset # => nil
Delete Oid::Components::Asset
from the entity. Returns self
to allow chainables
entity.del_asset
entity.asset # => nil
Will return the component that is a Oid::Components::Asset
or raise
Will return true if the entity has an component Oid::Components::Asset
or false if it does not
Will return true if the entity has an component Oid::Components::Asset
or false if it does not
Will replace the current component with the new one provided
entity.replace_component_asset(new_comp)
entity.get_asset # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_asset
entity.get_asset # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_asset
entity.get_asset # => (new_comp)