Entitas::EntityIndex(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)
Sourcenew(name : String, group : Entitas::Group(TEntity), get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey)))
Sourcenew(name : String, group : Entitas::Group(TEntity), get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey))
SourceInstance methods
[](value : TKey)
Source[]?(value : TKey)
Sourceadd_entity(key : TKey, entity : TEntity)
Sourceclear
Sourcedel_entity(key : TKey, entity : TEntity)
Sourceeach(*args, **options)
Sourceeach(*args, **options, &)
Sourceget_entities(key : TKey) : Array(TEntity)
Sourceindex
Sourceto_s(io)
Source