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 | List of all members
Entitas.PrimaryEntityIndex< TEntity, TKey > Class Template Reference
Inheritance diagram for Entitas.PrimaryEntityIndex< TEntity, TKey >:
Entitas.AbstractEntityIndex< TEntity, TKey > Entitas.IEntityIndex

Public Member Functions

 PrimaryEntityIndex (string name, IGroup< TEntity > group, Func< TEntity, IComponent, TKey > getKey)
 
 PrimaryEntityIndex (string name, IGroup< TEntity > group, Func< TEntity, IComponent, TKey[]> getKeys)
 
 PrimaryEntityIndex (string name, IGroup< TEntity > group, Func< TEntity, IComponent, TKey > getKey, IEqualityComparer< TKey > comparer)
 
 PrimaryEntityIndex (string name, IGroup< TEntity > group, Func< TEntity, IComponent, TKey[]> getKeys, IEqualityComparer< TKey > comparer)
 
override void Activate ()
 
TEntity GetEntity (TKey key)
 
override string ToString ()
 
- Public Member Functions inherited from Entitas.AbstractEntityIndex< TEntity, TKey >
virtual void Deactivate ()
 
override string ToString ()
 

Protected Member Functions

override void clear ()
 
override void addEntity (TKey key, TEntity entity)
 
override void removeEntity (TKey key, TEntity entity)
 
- Protected Member Functions inherited from Entitas.AbstractEntityIndex< TEntity, TKey >
 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)
 

Additional Inherited Members

- Protected Attributes inherited from Entitas.AbstractEntityIndex< TEntity, TKey >
readonly string _name
 
readonly IGroup< TEntity > _group
 
readonly Func< TEntity, IComponent, TKey > _getKey
 
readonly Func< TEntity, IComponent, TKey[]> _getKeys
 
readonly bool _isSingleKey
 
- Properties inherited from Entitas.AbstractEntityIndex< TEntity, TKey >
string name [get]
 
- Properties inherited from Entitas.IEntityIndex
string name [get]
 

Detailed Description

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

Definition at line 6 of file PrimaryEntityIndex.cs.


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