new entitas.GroupObserver(groups, eventTypes)
Name | Type | Description |
---|---|---|
groups |
Array.<entitas.Group> | |
eventTypes |
number |
Members
-
collectedEntitiesObject.<string, entitas.Entity>
-
Entities being observed
Methods
-
activate()
-
Activate events
-
addEntity(group, entity, index, component)
-
Adds an entity to this observer group
Name Type Description group
entity
entitas.Entity index
component
entitas.IComponent -
clearCollectedEntities()
-
Clear the list of entities
-
deactivate()
-
Deavtivate events