module Oid::Components::Scale::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_scale : Entitas::Entity #

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

entity.add_component_scale

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

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

entity.add_component_scale

def add_scale(value : Float64 = 1.0) : Entitas::Entity #

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

entity.add_scale(1)

def del_component_scale : Entitas::Entity #

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

entity.del_scale
entity.scale # => nil

def del_scale : Entitas::Entity #

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

entity.del_scale
entity.scale # => nil

def get_component_scale : Oid::Components::Scale #

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


def has_component_scale? : Bool #

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


def has_scale? : Bool #

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


def remove_component_scale #

Append. Alias for #del_component_scale


def remove_scale #

Append. Alias for #del_scale


def replace_component_scale(component : Oid::Components::Scale) #

Append. Alias for #replace_scale


def replace_component_scale(**args) #

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

entity.replace_scale
entity.get_scale # => (new_comp)

def replace_scale(value : Float64) #

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)

def replace_scale(component : Oid::Components::Scale) #

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


def scale? : Bool #

Alias. See #has_scale?