module Oid::Components::RootView::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_root_view : Entitas::Entity #

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

entity.add_component_root_view

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

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

entity.add_component_root_view

def add_root_view : Entitas::Entity #

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

entity.add_root_view

def del_component_root_view : Entitas::Entity #

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

entity.del_root_view
entity.root_view # => nil

def del_root_view : Entitas::Entity #

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

entity.del_root_view
entity.root_view # => nil

def get_component_root_view : Oid::Components::RootView #

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


def has_component_root_view? : Bool #

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


def has_root_view? : Bool #

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


def remove_component_root_view #

Append. Alias for #del_component_root_view


def remove_root_view #

Append. Alias for #del_root_view


def replace_component_root_view(component : Oid::Components::RootView) #

Append. Alias for #replace_root_view


def replace_component_root_view(**args) #

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

entity.replace_root_view
entity.get_root_view # => (new_comp)

def replace_root_view(component : Oid::Components::RootView) #

Will replace the current component with the new one provided

entity.replace_component_root_view(new_comp)
entity.get_root_view # => (new_comp)

def replace_root_view #

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

entity.replace_root_view
entity.get_root_view # => (new_comp)

def root_view : Oid::Components::RootView #

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


def root_view=(value : Bool) #

def root_view? : Bool #

Alias. See #has_root_view?