![]() |
Entitas
0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
|
Public Member Functions | |
EntityCollector (Group group, GroupEventType eventType) | |
EntityCollector (Group[] groups, GroupEventType[] eventTypes) | |
void | Activate () |
void | Deactivate () |
void | ClearCollectedEntities () |
Clears all collected entities. | |
override string | ToString () |
Properties | |
HashSet< Entity > | collectedEntities [get] |
An EntityCollector can observe one or more groups and collects changed entities based on the specified eventType.
Definition at line 8 of file EntityCollector.cs.
|
inline |
Creates an EntityCollector and will collect changed entities based on the specified eventType.
Definition at line 25 of file EntityCollector.cs.
|
inline |
Creates an EntityCollector and will collect changed entities based on the specified eventTypes.
Definition at line 31 of file EntityCollector.cs.
|
inline |
Activates the EntityCollector and will start collecting changed entities. EntityCollectors are activated by default.
Definition at line 52 of file EntityCollector.cs.
|
inline |
Deactivates the EntityCollector. This will also clear all collected entities. EntityCollectors are activated by default.
Definition at line 74 of file EntityCollector.cs.
|
get |
Returns all collected entities. Call collector.ClearCollectedEntities() once you processed all entities.
Definition at line 13 of file EntityCollector.cs.