module Oid::Components::LeftMouse::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_left_mouse : Entitas::Entity #

Add a Oid::Components::LeftMouse to the entity. Returns self to allow chainables

entity.add_component_left_mouse

def add_component_left_mouse(**args) : Entitas::Entity #

Add a Oid::Components::LeftMouse to the entity. Returns self to allow chainables

entity.add_component_left_mouse

def add_left_mouse : Entitas::Entity #

Add a Oid::Components::LeftMouse to the entity. Returns self to allow chainables

entity.add_left_mouse

def del_component_left_mouse : Entitas::Entity #

Delete Oid::Components::LeftMouse from the entity. Returns self to allow chainables

entity.del_left_mouse
entity.left_mouse # => nil

def del_left_mouse : Entitas::Entity #

Delete Oid::Components::LeftMouse from the entity. Returns self to allow chainables

entity.del_left_mouse
entity.left_mouse # => nil

def get_component_left_mouse : Oid::Components::LeftMouse #

Will return the component that is a Oid::Components::LeftMouse or raise


def has_component_left_mouse? : Bool #

Will return true if the entity has an component Oid::Components::LeftMouse or false if it does not


def has_left_mouse? : Bool #

Will return true if the entity has an component Oid::Components::LeftMouse or false if it does not


def left_mouse : Oid::Components::LeftMouse #

Will return the component that is a Oid::Components::LeftMouse or raise


def left_mouse=(value : Bool) #

def left_mouse? : Bool #

Alias. See #has_left_mouse?


def remove_component_left_mouse #

Append. Alias for #del_component_left_mouse


def remove_left_mouse #

Append. Alias for #del_left_mouse


def replace_component_left_mouse(component : Oid::Components::LeftMouse) #

Append. Alias for #replace_left_mouse


def replace_component_left_mouse(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_left_mouse
entity.get_left_mouse # => (new_comp)

def replace_left_mouse(component : Oid::Components::LeftMouse) #

Will replace the current component with the new one provided

entity.replace_component_left_mouse(new_comp)
entity.get_left_mouse # => (new_comp)

def replace_left_mouse #

Will replace the current component with the new one generated from the provided arguments

entity.replace_left_mouse
entity.get_left_mouse # => (new_comp)