module Oid::CameraService::Helper
Defined in:
Instance Method Summary
-
#add_camera_service(instance : Oid::Service::Camera) : Entitas::Entity
Add a
Oid::CameraService
to the entity. -
#add_component_camera_service : Entitas::Entity
Add a
Oid::CameraService
to the entity. -
#add_component_camera_service(**args) : Entitas::Entity
Add a
Oid::CameraService
to the entity. -
#camera_service : Oid::CameraService
Will return the component that is a
Oid::CameraService
or raise -
#camera_service? : Bool
Alias.
-
#del_camera_service : Entitas::Entity
Delete
Oid::CameraService
from the entity. -
#del_component_camera_service : Entitas::Entity
Delete
Oid::CameraService
from the entity. -
#get_component_camera_service : Oid::CameraService
Will return the component that is a
Oid::CameraService
or raise -
#has_camera_service? : Bool
Will return true if the entity has an component
Oid::CameraService
or false if it does not -
#has_component_camera_service? : Bool
Will return true if the entity has an component
Oid::CameraService
or false if it does not -
#remove_camera_service
Append.
-
#remove_component_camera_service
Append.
-
#replace_camera_service(instance : Oid::Service::Camera)
Will replace the current component with the new one generated from the provided arguments
-
#replace_camera_service(component : Oid::CameraService)
Will replace the current component with the new one provided
-
#replace_component_camera_service(component : Oid::CameraService)
Append.
-
#replace_component_camera_service(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::CameraService
to the entity. Returns self
to allow chainables
entity.add_camera_service(1)
Add a Oid::CameraService
to the entity. Returns self
to allow chainables
entity.add_component_camera_service
Add a Oid::CameraService
to the entity. Returns self
to allow chainables
entity.add_component_camera_service
Will return the component that is a Oid::CameraService
or raise
Delete Oid::CameraService
from the entity. Returns self
to allow chainables
entity.del_camera_service
entity.camera_service # => nil
Delete Oid::CameraService
from the entity. Returns self
to allow chainables
entity.del_camera_service
entity.camera_service # => nil
Will return the component that is a Oid::CameraService
or raise
Will return true if the entity has an component Oid::CameraService
or false if it does not
Will return true if the entity has an component Oid::CameraService
or false if it does not
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)
Will replace the current component with the new one provided
entity.replace_component_camera_service(new_comp)
entity.get_camera_service # => (new_comp)
Append. Alias for #replace_camera_service
Will replace the current component with the new one generated from the provided arguments
entity.replace_camera_service
entity.get_camera_service # => (new_comp)