module Oid::Components::MouseUp::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_mouse_up : Entitas::Entity #

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

entity.add_component_mouse_up

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

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

entity.add_component_mouse_up

def add_mouse_up(position : Oid::Vector2) : Entitas::Entity #

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

entity.add_mouse_up(1)

def del_component_mouse_up : Entitas::Entity #

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

entity.del_mouse_up
entity.mouse_up # => nil

def del_mouse_up : Entitas::Entity #

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

entity.del_mouse_up
entity.mouse_up # => nil

def get_component_mouse_up : Oid::Components::MouseUp #

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


def has_component_mouse_up? : Bool #

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


def has_mouse_up? : Bool #

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


def mouse_up : Oid::Components::MouseUp #

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


def mouse_up? : Bool #

Alias. See #has_mouse_up?


def remove_component_mouse_up #

Append. Alias for #del_component_mouse_up


def remove_mouse_up #

Append. Alias for #del_mouse_up


def replace_component_mouse_up(component : Oid::Components::MouseUp) #

Append. Alias for #replace_mouse_up


def replace_component_mouse_up(**args) #

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

entity.replace_mouse_up
entity.get_mouse_up # => (new_comp)

def replace_mouse_up(position : Oid::Vector2) #

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

entity.replace_mouse_up(value: 1)
entity.get_mouse_up # => (new_comp)

or

entity.replace_mouse_up(1)
entity.get_mouse_up # => (new_comp)

def replace_mouse_up(component : Oid::Components::MouseUp) #

Will replace the current component with the new one provided

entity.replace_component_mouse_up(new_comp)
entity.get_mouse_up # => (new_comp)