module Oid::Components::KeyUp::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_key_up : Entitas::Entity #

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

entity.add_component_key_up

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

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

entity.add_component_key_up

def add_key_up : Entitas::Entity #

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

entity.add_key_up

def del_component_key_up : Entitas::Entity #

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

entity.del_key_up
entity.key_up # => nil

def del_key_up : Entitas::Entity #

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

entity.del_key_up
entity.key_up # => nil

def get_component_key_up : Oid::Components::KeyUp #

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


def has_component_key_up? : Bool #

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


def has_key_up? : Bool #

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


def key_up : Oid::Components::KeyUp #

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


def key_up=(value : Bool) #

def key_up? : Bool #

Alias. See #has_key_up?


def remove_component_key_up #

Append. Alias for #del_component_key_up


def remove_key_up #

Append. Alias for #del_key_up


def replace_component_key_up(component : Oid::Components::KeyUp) #

Append. Alias for #replace_key_up


def replace_component_key_up(**args) #

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

entity.replace_key_up
entity.get_key_up # => (new_comp)

def replace_key_up(component : Oid::Components::KeyUp) #

Will replace the current component with the new one provided

entity.replace_component_key_up(new_comp)
entity.get_key_up # => (new_comp)

def replace_key_up #

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

entity.replace_key_up
entity.get_key_up # => (new_comp)