Entitas::AbstractEntityIndex(TEntity, TKey)
Inherits 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
activate
Sourceadd_entity(key : TKey, entity : TEntity)
Sourceclear
Sourcedeactivate
Sourcedel_entity(key : TKey, entity : TEntity)
Sourcefinalize
Sourceget_key
Sourceget_keys
Sourcename
Source