module Oid::Components::Interactive::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_interactive : Entitas::Entity #

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

entity.add_component_interactive

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

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

entity.add_component_interactive

def add_interactive : Entitas::Entity #

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

entity.add_interactive

def del_component_interactive : Entitas::Entity #

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

entity.del_interactive
entity.interactive # => nil

def del_interactive : Entitas::Entity #

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

entity.del_interactive
entity.interactive # => nil

def get_component_interactive : Oid::Components::Interactive #

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


def has_component_interactive? : Bool #

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


def has_interactive? : Bool #

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


def interactive : Oid::Components::Interactive #

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


def interactive=(value : Bool) #

def interactive? : Bool #

Alias. See #has_interactive?


def remove_component_interactive #

Append. Alias for #del_component_interactive


def remove_interactive #

Append. Alias for #del_interactive


def replace_component_interactive(component : Oid::Components::Interactive) #

Append. Alias for #replace_interactive


def replace_component_interactive(**args) #

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

entity.replace_interactive
entity.get_interactive # => (new_comp)

def replace_interactive(component : Oid::Components::Interactive) #

Will replace the current component with the new one provided

entity.replace_component_interactive(new_comp)
entity.get_interactive # => (new_comp)

def replace_interactive #

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

entity.replace_interactive
entity.get_interactive # => (new_comp)