module Oid::Components::Camera::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

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

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

entity.add_camera

def add_component_camera : Entitas::Entity #

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

entity.add_component_camera

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

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

entity.add_component_camera

def camera : Oid::Components::Camera #

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


def camera? : Bool #

Alias. See #has_camera?


def del_camera : Entitas::Entity #

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

entity.del_camera
entity.camera # => nil

def del_component_camera : Entitas::Entity #

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

entity.del_camera
entity.camera # => nil

def get_component_camera : Oid::Components::Camera #

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


def has_camera? : Bool #

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


def has_component_camera? : Bool #

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


def remove_camera #

Append. Alias for #del_camera


def remove_component_camera #

Append. Alias for #del_component_camera


def replace_camera(component : Oid::Components::Camera) #

Will replace the current component with the new one provided

entity.replace_component_camera(new_comp)
entity.get_camera # => (new_comp)

def replace_camera(**args) #

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

entity.replace_camera
entity.get_camera # => (new_comp)

def replace_component_camera(component : Oid::Components::Camera) #

Append. Alias for #replace_camera


def replace_component_camera(**args) #

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

entity.replace_camera
entity.get_camera # => (new_comp)