module Oid::InputService::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_input_service : Entitas::Entity #

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

entity.add_component_input_service

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

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

entity.add_component_input_service

def add_input_service(instance : Oid::Service::Input) : Entitas::Entity #

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

entity.add_input_service(1)

def del_component_input_service : Entitas::Entity #

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

entity.del_input_service
entity.input_service # => nil

def del_input_service : Entitas::Entity #

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

entity.del_input_service
entity.input_service # => nil

def get_component_input_service : Oid::InputService #

Will return the component that is a Oid::InputService or raise


def has_component_input_service? : Bool #

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


def has_input_service? : Bool #

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


def input_service : Oid::InputService #

Will return the component that is a Oid::InputService or raise


def input_service? : Bool #

Alias. See #has_input_service?


def remove_component_input_service #

Append. Alias for #del_component_input_service


def remove_input_service #

Append. Alias for #del_input_service


def replace_component_input_service(component : Oid::InputService) #

Append. Alias for #replace_input_service


def replace_component_input_service(**args) #

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

entity.replace_input_service
entity.get_input_service # => (new_comp)

def replace_input_service(instance : Oid::Service::Input) #

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

entity.replace_input_service(value: 1)
entity.get_input_service # => (new_comp)

or

entity.replace_input_service(1)
entity.get_input_service # => (new_comp)

def replace_input_service(component : Oid::InputService) #

Will replace the current component with the new one provided

entity.replace_component_input_service(new_comp)
entity.get_input_service # => (new_comp)