module Oid::Components::Window::Helper
Defined in:
Instance Method Summary
-
#add_component_window : Entitas::Entity
Add a
Oid::Components::Window
to the entity. -
#add_component_window(**args) : Entitas::Entity
Add a
Oid::Components::Window
to the entity. -
#add_window(value : Oid::Controller::Window) : Entitas::Entity
Add a
Oid::Components::Window
to the entity. -
#del_component_window : Entitas::Entity
Delete
Oid::Components::Window
from the entity. -
#del_window : Entitas::Entity
Delete
Oid::Components::Window
from the entity. -
#get_component_window : Oid::Components::Window
Will return the component that is a
Oid::Components::Window
or raise -
#has_component_window? : Bool
Will return true if the entity has an component
Oid::Components::Window
or false if it does not -
#has_window? : Bool
Will return true if the entity has an component
Oid::Components::Window
or false if it does not -
#remove_component_window
Append.
-
#remove_window
Append.
-
#replace_component_window(component : Oid::Components::Window)
Append.
-
#replace_component_window(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_window(component : Oid::Components::Window)
Will replace the current component with the new one provided
-
#replace_window(value : Oid::Controller::Window)
Will replace the current component with the new one generated from the provided arguments
-
#window : Oid::Components::Window
Will return the component that is a
Oid::Components::Window
or raise -
#window? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::Window
to the entity. Returns self
to allow chainables
entity.add_component_window
Add a Oid::Components::Window
to the entity. Returns self
to allow chainables
entity.add_component_window
Add a Oid::Components::Window
to the entity. Returns self
to allow chainables
entity.add_window(1)
Delete Oid::Components::Window
from the entity. Returns self
to allow chainables
entity.del_window
entity.window # => nil
Delete Oid::Components::Window
from the entity. Returns self
to allow chainables
entity.del_window
entity.window # => nil
Will return the component that is a Oid::Components::Window
or raise
Will return true if the entity has an component Oid::Components::Window
or false if it does not
Will return true if the entity has an component Oid::Components::Window
or false if it does not
Append. Alias for #replace_window
Will replace the current component with the new one generated from the provided arguments
entity.replace_window
entity.get_window # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_window(new_comp)
entity.get_window # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_window(value: 1)
entity.get_window # => (new_comp)
or
entity.replace_window(1)
entity.get_window # => (new_comp)
Will return the component that is a Oid::Components::Window
or raise