module Oid::Components::MouseDown::Helper
Defined in:
Instance Method Summary
-
#add_component_mouse_down : Entitas::Entity
Add a
Oid::Components::MouseDown
to the entity. -
#add_component_mouse_down(**args) : Entitas::Entity
Add a
Oid::Components::MouseDown
to the entity. -
#add_mouse_down(position : Oid::Vector2) : Entitas::Entity
Add a
Oid::Components::MouseDown
to the entity. -
#del_component_mouse_down : Entitas::Entity
Delete
Oid::Components::MouseDown
from the entity. -
#del_mouse_down : Entitas::Entity
Delete
Oid::Components::MouseDown
from the entity. -
#get_component_mouse_down : Oid::Components::MouseDown
Will return the component that is a
Oid::Components::MouseDown
or raise -
#has_component_mouse_down? : Bool
Will return true if the entity has an component
Oid::Components::MouseDown
or false if it does not -
#has_mouse_down? : Bool
Will return true if the entity has an component
Oid::Components::MouseDown
or false if it does not -
#mouse_down : Oid::Components::MouseDown
Will return the component that is a
Oid::Components::MouseDown
or raise -
#mouse_down? : Bool
Alias.
-
#remove_component_mouse_down
Append.
-
#remove_mouse_down
Append.
-
#replace_component_mouse_down(component : Oid::Components::MouseDown)
Append.
-
#replace_component_mouse_down(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_mouse_down(position : Oid::Vector2)
Will replace the current component with the new one generated from the provided arguments
-
#replace_mouse_down(component : Oid::Components::MouseDown)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::Components::MouseDown
to the entity. Returns self
to allow chainables
entity.add_component_mouse_down
Add a Oid::Components::MouseDown
to the entity. Returns self
to allow chainables
entity.add_component_mouse_down
Add a Oid::Components::MouseDown
to the entity. Returns self
to allow chainables
entity.add_mouse_down(1)
Delete Oid::Components::MouseDown
from the entity. Returns self
to allow chainables
entity.del_mouse_down
entity.mouse_down # => nil
Delete Oid::Components::MouseDown
from the entity. Returns self
to allow chainables
entity.del_mouse_down
entity.mouse_down # => nil
Will return the component that is a Oid::Components::MouseDown
or raise
Will return true if the entity has an component Oid::Components::MouseDown
or false if it does not
Will return true if the entity has an component Oid::Components::MouseDown
or false if it does not
Will return the component that is a Oid::Components::MouseDown
or raise
Append. Alias for #replace_mouse_down
Will replace the current component with the new one generated from the provided arguments
entity.replace_mouse_down
entity.get_mouse_down # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_mouse_down(value: 1)
entity.get_mouse_down # => (new_comp)
or
entity.replace_mouse_down(1)
entity.get_mouse_down # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_mouse_down(new_comp)
entity.get_mouse_down # => (new_comp)