module Oid::Components::MouseReleased::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_mouse_released : Entitas::Entity #

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

entity.add_component_mouse_released

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

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

entity.add_component_mouse_released

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

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

entity.add_mouse_released(1)

def del_component_mouse_released : Entitas::Entity #

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

entity.del_mouse_released
entity.mouse_released # => nil

def del_mouse_released : Entitas::Entity #

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

entity.del_mouse_released
entity.mouse_released # => nil

def get_component_mouse_released : Oid::Components::MouseReleased #

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


def has_component_mouse_released? : Bool #

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


def has_mouse_released? : Bool #

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


def mouse_released : Oid::Components::MouseReleased #

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


def mouse_released? : Bool #

def remove_component_mouse_released #

Append. Alias for #del_component_mouse_released


def remove_mouse_released #

Append. Alias for #del_mouse_released


def replace_component_mouse_released(component : Oid::Components::MouseReleased) #

Append. Alias for #replace_mouse_released


def replace_component_mouse_released(**args) #

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

entity.replace_mouse_released
entity.get_mouse_released # => (new_comp)

def replace_mouse_released(position : Oid::Vector2) #

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

entity.replace_mouse_released(value: 1)
entity.get_mouse_released # => (new_comp)

or

entity.replace_mouse_released(1)
entity.get_mouse_released # => (new_comp)

def replace_mouse_released(component : Oid::Components::MouseReleased) #

Will replace the current component with the new one provided

entity.replace_component_mouse_released(new_comp)
entity.get_mouse_released # => (new_comp)