Entitas-0.32.0
Public Member Functions | Properties | List of all members
Entitas.GroupObserver Class Reference

A GroupObserver can observe one or more groups and collects changed entities based on the specified eventType. More...

Public Member Functions

 GroupObserver (Group group, GroupEventType eventType)
 Creates a GroupObserver and will collect changed entities based on the specified eventType.
 
 GroupObserver (Group[] groups, GroupEventType[] eventTypes)
 Creates a GroupObserver and will collect changed entities based on the specified eventTypes.
 
void Activate ()
 Activates the GroupObserver (GroupObserver are activated by default) and will start collecting changed entities.
 
void Deactivate ()
 
void ClearCollectedEntities ()
 Clears all collected entities.
 
override string ToString ()
 

Properties

HashSet< EntitycollectedEntities [get]
 Returns all collected entities. Call observer.ClearCollectedEntities() once you processed all entities.
 

Detailed Description

A GroupObserver can observe one or more groups and collects changed entities based on the specified eventType.

Member Function Documentation

void Entitas.GroupObserver.Deactivate ( )
inline

Deactivates the GroupObserver (GroupObserver are activated by default). This will also clear all collected entities.


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