class

Entitas::PrimaryEntityIndex(TEntity, TKey)

Inherits Entitas::AbstractEntityIndex / Enumerable / Entitas::IEntityIndex / Reference / Object

Constructors

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

Instance methods

[](value : TKey)
Source
[]?(value : TKey)
Source
add_entity(key : TKey, entity : TEntity)
Source
clear
Source
del_entity(key : TKey, entity : TEntity)
Source
each(*args, **options)
Source
each(*args, **options, &)
Source
get_entity(key : TKey) : TEntity | Nil
Source
index
Source
to_s(io)
Source