module Oid::Components::ViewElement::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_view_element : Entitas::Entity #

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

entity.add_component_view_element

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

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

entity.add_component_view_element

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

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

entity.add_view_element

def del_component_view_element : Entitas::Entity #

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

entity.del_view_element
entity.view_element # => nil

def del_view_element : Entitas::Entity #

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

entity.del_view_element
entity.view_element # => nil

def get_component_view_element : Oid::Components::ViewElement #

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


def has_component_view_element? : Bool #

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


def has_view_element? : Bool #

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


def remove_component_view_element #

Append. Alias for #del_component_view_element


def remove_view_element #

Append. Alias for #del_view_element


def replace_component_view_element(component : Oid::Components::ViewElement) #

Append. Alias for #replace_view_element


def replace_component_view_element(**args) #

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

entity.replace_view_element
entity.get_view_element # => (new_comp)

def replace_view_element(component : Oid::Components::ViewElement) #

Will replace the current component with the new one provided

entity.replace_component_view_element(new_comp)
entity.get_view_element # => (new_comp)

def replace_view_element(**args) #

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

entity.replace_view_element
entity.get_view_element # => (new_comp)

def view_element : Oid::Components::ViewElement #

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


def view_element? : Bool #

Alias. See #has_view_element?