module Oid::Components::Camera::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_camera(**args) : Entitas::Entity
Add a
Oid::Components::Camera
to the entity. -
#add_component_camera : Entitas::Entity
Add a
Oid::Components::Camera
to the entity. -
#add_component_camera(**args) : Entitas::Entity
Add a
Oid::Components::Camera
to the entity. -
#camera : Oid::Components::Camera
Will return the component that is a
Oid::Components::Camera
or raise -
#camera? : Bool
Alias.
-
#del_camera : Entitas::Entity
Delete
Oid::Components::Camera
from the entity. -
#del_component_camera : Entitas::Entity
Delete
Oid::Components::Camera
from the entity. -
#get_component_camera : Oid::Components::Camera
Will return the component that is a
Oid::Components::Camera
or raise -
#has_camera? : Bool
Will return true if the entity has an component
Oid::Components::Camera
or false if it does not -
#has_component_camera? : Bool
Will return true if the entity has an component
Oid::Components::Camera
or false if it does not -
#remove_camera
Append.
-
#remove_component_camera
Append.
-
#replace_camera(component : Oid::Components::Camera)
Will replace the current component with the new one provided
-
#replace_camera(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_component_camera(component : Oid::Components::Camera)
Append.
-
#replace_component_camera(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Camera
to the entity. Returns self
to allow chainables
entity.add_camera
Add a Oid::Components::Camera
to the entity. Returns self
to allow chainables
entity.add_component_camera
Add a Oid::Components::Camera
to the entity. Returns self
to allow chainables
entity.add_component_camera
Will return the component that is a Oid::Components::Camera
or raise
Delete Oid::Components::Camera
from the entity. Returns self
to allow chainables
entity.del_camera
entity.camera # => nil
Delete Oid::Components::Camera
from the entity. Returns self
to allow chainables
entity.del_camera
entity.camera # => nil
Will return the component that is a Oid::Components::Camera
or raise
Will return true if the entity has an component Oid::Components::Camera
or false if it does not
Will return true if the entity has an component Oid::Components::Camera
or false if it does not
Will replace the current component with the new one provided
entity.replace_component_camera(new_comp)
entity.get_camera # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_camera
entity.get_camera # => (new_comp)
Append. Alias for #replace_camera
Will replace the current component with the new one generated from the provided arguments
entity.replace_camera
entity.get_camera # => (new_comp)