class Entitas::PrimaryEntityIndex(TEntity, TKey)

Defined in:

entitas.cr
entitas/entity_index/primary.cr

Constructors

Instance Method Summary

Instance methods inherited from class Entitas::AbstractEntityIndex(TEntity, TKey)

activate : Nil activate, add_entity(key : TKey, entity : TEntity) add_entity, clear clear, deactivate : Nil deactivate, del_entity(key : TKey, entity : TEntity) del_entity, finalize finalize, get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey) get_key, get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey)) get_keys, name : String name

Constructor methods inherited from class Entitas::AbstractEntityIndex(TEntity, TKey)

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)
new(name : String, group : Entitas::Group(TEntity), get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey)))
new(name : String, group : Entitas::Group(TEntity), get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey))
new

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 [](value : TKey) #

[View source]
def []?(value : TKey) #

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

[View source]
def clear #

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

[View source]
def each(*args, **options) #

[View source]
def each(*args, **options, &) #

[View source]
def get_entity(key : TKey) : TEntity | Nil #

[View source]
def index : Hash(TKey, TEntity) #

[View source]
def to_s(io) #

[View source]