Entitas Redux
JCMG.EntitasRedux.EntityIndex< TEntity, TKey > Class Template Reference
Inheritance diagram for JCMG.EntitasRedux.EntityIndex< TEntity, TKey >:
JCMG.EntitasRedux.AbstractEntityIndex< TEntity, TKey > JCMG.EntitasRedux.IEntityIndex

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from JCMG.EntitasRedux.AbstractEntityIndex< TEntity, TKey >
string Name => _name
 
- Properties inherited from JCMG.EntitasRedux.IEntityIndex
string Name [get]
 

Detailed Description

Type Constraints
TEntity :class 
TEntity :IEntity 

Definition at line 31 of file EntityIndex.cs.

Constructor & Destructor Documentation

◆ EntityIndex() [1/4]

JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.EntityIndex ( string  name,
IGroup< TEntity >  group,
Func< TEntity, IComponent, TKey >  getKey 
)

Definition at line 36 of file EntityIndex.cs.

◆ EntityIndex() [2/4]

JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.EntityIndex ( string  name,
IGroup< TEntity >  group,
Func< TEntity, IComponent, TKey[]>  getKeys 
)

Definition at line 42 of file EntityIndex.cs.

◆ EntityIndex() [3/4]

JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.EntityIndex ( string  name,
IGroup< TEntity >  group,
Func< TEntity, IComponent, TKey >  getKey,
IEqualityComparer< TKey >  comparer 
)

Definition at line 51 of file EntityIndex.cs.

◆ EntityIndex() [4/4]

JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.EntityIndex ( string  name,
IGroup< TEntity >  group,
Func< TEntity, IComponent, TKey[]>  getKeys,
IEqualityComparer< TKey >  comparer 
)

Definition at line 58 of file EntityIndex.cs.

Member Function Documentation

◆ Activate()

override void JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.Activate ( )
virtual

Reimplemented from JCMG.EntitasRedux.AbstractEntityIndex< TEntity, TKey >.

Definition at line 65 of file EntityIndex.cs.

◆ GetEntities()

HashSet<TEntity> JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.GetEntities ( TKey  key)

Definition at line 71 of file EntityIndex.cs.

◆ ToString()

override string JCMG.EntitasRedux.EntityIndex< TEntity, TKey >.ToString ( )

Definition at line 82 of file EntityIndex.cs.


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