Entitas  0.40.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Entitas.AbstractEntityIndex< TEntity, TKey > Class Template Referenceabstract
Inheritance diagram for Entitas.AbstractEntityIndex< TEntity, TKey >:
Entitas.IEntityIndex Entitas.EntityIndex< TEntity, TKey > Entitas.PrimaryEntityIndex< TEntity, TKey >

Public Member Functions

virtual void Activate ()
 
virtual void Deactivate ()
 
override string ToString ()
 

Protected Member Functions

 AbstractEntityIndex (string name, IGroup< TEntity > group, Func< TEntity, IComponent, TKey > getKey)
 
 AbstractEntityIndex (string name, IGroup< TEntity > group, Func< TEntity, IComponent, TKey[]> getKeys)
 
void indexEntities (IGroup< TEntity > group)
 
void onEntityAdded (IGroup< TEntity > group, TEntity entity, int index, IComponent component)
 
void onEntityRemoved (IGroup< TEntity > group, TEntity entity, int index, IComponent component)
 
abstract void addEntity (TKey key, TEntity entity)
 
abstract void removeEntity (TKey key, TEntity entity)
 
abstract void clear ()
 

Protected Attributes

readonly string _name
 
readonly IGroup< TEntity > _group
 
readonly Func< TEntity, IComponent, TKey > _getKey
 
readonly Func< TEntity, IComponent, TKey[]> _getKeys
 
readonly bool _isSingleKey
 

Properties

string name [get]
 
- Properties inherited from Entitas.IEntityIndex
string name [get]
 

Detailed Description

Type Constraints
TEntity :class 
TEntity :IEntity 
TEntity :new() 

Definition at line 5 of file AbstractEntityIndex.cs.


The documentation for this class was generated from the following file: