module Oid::InputService::Helper
Defined in:
Instance Method Summary
-
#add_component_input_service : Entitas::Entity
Add a
Oid::InputService
to the entity. -
#add_component_input_service(**args) : Entitas::Entity
Add a
Oid::InputService
to the entity. -
#add_input_service(instance : Oid::Service::Input) : Entitas::Entity
Add a
Oid::InputService
to the entity. -
#del_component_input_service : Entitas::Entity
Delete
Oid::InputService
from the entity. -
#del_input_service : Entitas::Entity
Delete
Oid::InputService
from the entity. -
#get_component_input_service : Oid::InputService
Will return the component that is a
Oid::InputService
or raise -
#has_component_input_service? : Bool
Will return true if the entity has an component
Oid::InputService
or false if it does not -
#has_input_service? : Bool
Will return true if the entity has an component
Oid::InputService
or false if it does not -
#input_service : Oid::InputService
Will return the component that is a
Oid::InputService
or raise -
#input_service? : Bool
Alias.
-
#remove_component_input_service
Append.
-
#remove_input_service
Append.
-
#replace_component_input_service(component : Oid::InputService)
Append.
-
#replace_component_input_service(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_input_service(instance : Oid::Service::Input)
Will replace the current component with the new one generated from the provided arguments
-
#replace_input_service(component : Oid::InputService)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::InputService
to the entity. Returns self
to allow chainables
entity.add_component_input_service
Add a Oid::InputService
to the entity. Returns self
to allow chainables
entity.add_component_input_service
Add a Oid::InputService
to the entity. Returns self
to allow chainables
entity.add_input_service(1)
Delete Oid::InputService
from the entity. Returns self
to allow chainables
entity.del_input_service
entity.input_service # => nil
Delete Oid::InputService
from the entity. Returns self
to allow chainables
entity.del_input_service
entity.input_service # => nil
Will return the component that is a Oid::InputService
or raise
Will return true if the entity has an component Oid::InputService
or false if it does not
Will return true if the entity has an component Oid::InputService
or false if it does not
Will return the component that is a Oid::InputService
or raise
Append. Alias for #replace_input_service
Will replace the current component with the new one generated from the provided arguments
entity.replace_input_service
entity.get_input_service # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_input_service(value: 1)
entity.get_input_service # => (new_comp)
or
entity.replace_input_service(1)
entity.get_input_service # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_input_service(new_comp)
entity.get_input_service # => (new_comp)