module Oid::Components::UiElement::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_ui_element : Entitas::Entity #

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

entity.add_component_ui_element

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

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

entity.add_component_ui_element

def add_ui_element : Entitas::Entity #

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

entity.add_ui_element

def del_component_ui_element : Entitas::Entity #

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

entity.del_ui_element
entity.ui_element # => nil

def del_ui_element : Entitas::Entity #

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

entity.del_ui_element
entity.ui_element # => nil

def get_component_ui_element : Oid::Components::UiElement #

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


def has_component_ui_element? : Bool #

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


def has_ui_element? : Bool #

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


def remove_component_ui_element #

Append. Alias for #del_component_ui_element


def remove_ui_element #

Append. Alias for #del_ui_element


def replace_component_ui_element(component : Oid::Components::UiElement) #

Append. Alias for #replace_ui_element


def replace_component_ui_element(**args) #

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

entity.replace_ui_element
entity.get_ui_element # => (new_comp)

def replace_ui_element(component : Oid::Components::UiElement) #

Will replace the current component with the new one provided

entity.replace_component_ui_element(new_comp)
entity.get_ui_element # => (new_comp)

def replace_ui_element #

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

entity.replace_ui_element
entity.get_ui_element # => (new_comp)

def ui_element : Oid::Components::UiElement #

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


def ui_element=(value : Bool) #

def ui_element? : Bool #

Alias. See #has_ui_element?