module Oid::Components::CameraTarget::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_camera_target : Entitas::Entity #

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

entity.add_camera_target

def add_component_camera_target : Entitas::Entity #

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

entity.add_component_camera_target

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

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

entity.add_component_camera_target

def camera_target : Oid::Components::CameraTarget #

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


def camera_target=(value : Bool) #

def camera_target? : Bool #

Alias. See #has_camera_target?


def del_camera_target : Entitas::Entity #

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

entity.del_camera_target
entity.camera_target # => nil

def del_component_camera_target : Entitas::Entity #

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

entity.del_camera_target
entity.camera_target # => nil

def get_component_camera_target : Oid::Components::CameraTarget #

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


def has_camera_target? : Bool #

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


def has_component_camera_target? : Bool #

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


def remove_camera_target #

Append. Alias for #del_camera_target


def remove_component_camera_target #

Append. Alias for #del_component_camera_target


def replace_camera_target(component : Oid::Components::CameraTarget) #

Will replace the current component with the new one provided

entity.replace_component_camera_target(new_comp)
entity.get_camera_target # => (new_comp)

def replace_camera_target #

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

entity.replace_camera_target
entity.get_camera_target # => (new_comp)

def replace_component_camera_target(component : Oid::Components::CameraTarget) #

Append. Alias for #replace_camera_target


def replace_component_camera_target(**args) #

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

entity.replace_camera_target
entity.get_camera_target # => (new_comp)