module Oid::CameraService::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_camera_service(instance : Oid::Service::Camera) : Entitas::Entity #

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

entity.add_camera_service(1)

def add_component_camera_service : Entitas::Entity #

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

entity.add_component_camera_service

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

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

entity.add_component_camera_service

def camera_service : Oid::CameraService #

Will return the component that is a Oid::CameraService or raise


def camera_service? : Bool #

def del_camera_service : Entitas::Entity #

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

entity.del_camera_service
entity.camera_service # => nil

def del_component_camera_service : Entitas::Entity #

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

entity.del_camera_service
entity.camera_service # => nil

def get_component_camera_service : Oid::CameraService #

Will return the component that is a Oid::CameraService or raise


def has_camera_service? : Bool #

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


def has_component_camera_service? : Bool #

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


def remove_camera_service #

Append. Alias for #del_camera_service


def remove_component_camera_service #

Append. Alias for #del_component_camera_service


def replace_camera_service(instance : Oid::Service::Camera) #

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

entity.replace_camera_service(value: 1)
entity.get_camera_service # => (new_comp)

or

entity.replace_camera_service(1)
entity.get_camera_service # => (new_comp)

def replace_camera_service(component : Oid::CameraService) #

Will replace the current component with the new one provided

entity.replace_component_camera_service(new_comp)
entity.get_camera_service # => (new_comp)

def replace_component_camera_service(component : Oid::CameraService) #

Append. Alias for #replace_camera_service


def replace_component_camera_service(**args) #

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

entity.replace_camera_service
entity.get_camera_service # => (new_comp)