module Oid::Components::Scale::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_scale : Entitas::Entity
Add a
Oid::Components::Scale
to the entity. -
#add_component_scale(**args) : Entitas::Entity
Add a
Oid::Components::Scale
to the entity. -
#add_scale(value : Float64 = 1.0) : Entitas::Entity
Add a
Oid::Components::Scale
to the entity. -
#del_component_scale : Entitas::Entity
Delete
Oid::Components::Scale
from the entity. -
#del_scale : Entitas::Entity
Delete
Oid::Components::Scale
from the entity. -
#get_component_scale : Oid::Components::Scale
Will return the component that is a
Oid::Components::Scale
or raise -
#has_component_scale? : Bool
Will return true if the entity has an component
Oid::Components::Scale
or false if it does not -
#has_scale? : Bool
Will return true if the entity has an component
Oid::Components::Scale
or false if it does not -
#remove_component_scale
Append.
-
#remove_scale
Append.
-
#replace_component_scale(component : Oid::Components::Scale)
Append.
-
#replace_component_scale(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_scale(value : Float64)
Will replace the current component with the new one generated from the provided arguments
-
#replace_scale(component : Oid::Components::Scale)
Will replace the current component with the new one provided
-
#scale : Oid::Components::Scale
Will return the component that is a
Oid::Components::Scale
or raise -
#scale? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::Scale
to the entity. Returns self
to allow chainables
entity.add_component_scale
Add a Oid::Components::Scale
to the entity. Returns self
to allow chainables
entity.add_component_scale
Add a Oid::Components::Scale
to the entity. Returns self
to allow chainables
entity.add_scale(1)
Delete Oid::Components::Scale
from the entity. Returns self
to allow chainables
entity.del_scale
entity.scale # => nil
Delete Oid::Components::Scale
from the entity. Returns self
to allow chainables
entity.del_scale
entity.scale # => nil
Will return the component that is a Oid::Components::Scale
or raise
Will return true if the entity has an component Oid::Components::Scale
or false if it does not
Will return true if the entity has an component Oid::Components::Scale
or false if it does not
Will replace the current component with the new one generated from the provided arguments
entity.replace_scale
entity.get_scale # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_scale(value: 1)
entity.get_scale # => (new_comp)
or
entity.replace_scale(1)
entity.get_scale # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_scale(new_comp)
entity.get_scale # => (new_comp)
Will return the component that is a Oid::Components::Scale
or raise