abstract class Entitas::AbstractEntityIndex(TEntity, TKey)
- Entitas::AbstractEntityIndex(TEntity, TKey)
- Reference
- Object
Included Modules
- Entitas::IEntityIndex
- Enumerable({TKey, TEntity})
Direct Known Subclasses
Defined in:
entitas.crentitas/entity_index/abstract.cr
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)
- .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))
Instance Method Summary
- #activate : Nil
- #add_entity(key : TKey, entity : TEntity)
- #clear
- #deactivate : Nil
- #del_entity(key : TKey, entity : TEntity)
- #finalize
- #get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey)
- #get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey))
- #name : String
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)
#
def self.new(name : String, group : Entitas::Group(TEntity), get_keys : Proc(TEntity, Entitas::IComponent | Nil, Array(TKey)))
#
def self.new(name : String, group : Entitas::Group(TEntity), get_key : Proc(TEntity, Entitas::IComponent | Nil, TKey))
#