abstract class Entitas::AbstractEntityIndex(TEntity, TKey)

Included Modules

Direct Known Subclasses

Defined in:

entitas.cr
entitas/entity_index/abstract.cr

Constructors

Instance Method Summary

Instance methods inherited from module Entitas::IEntityIndex

activate : Nil activate, deactivate : Nil deactivate, name : String name, to_json(json) to_json, to_s(io) to_s, to_string_cache : String | Nil to_string_cache, to_string_cache=(to_string_cache : String | Nil) to_string_cache=

Constructor Detail

def self.new(name : String, group : Entitas::Group(TEntity), get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey) | Nil, get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey)) | Nil, is_single_key : Bool) #

[View source]
def self.new(name : String, group : Entitas::Group(TEntity), get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey))) #

[View source]
def self.new(name : String, group : Entitas::Group(TEntity), get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey)) #

[View source]

Instance Method Detail

def activate : Nil #

[View source]
abstract def add_entity(key : TKey, entity : TEntity) #

[View source]
abstract def clear #

[View source]
def deactivate : Nil #

[View source]
abstract def del_entity(key : TKey, entity : TEntity) #

[View source]
def finalize #

[View source]
def get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey) #

[View source]
def get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey)) #

[View source]
def name : String #

[View source]