Members
-
countnumber
-
Count the number of entities in this group
-
matcherentitas.IMatcher
-
Get the Matcher for this group
-
onEntityAddedentitas.utils.ISignal
-
Subscribe to Entity Addded events
-
onEntityRemovedentitas.utils.ISignal
-
Subscribe to Entity Removed events
-
onEntityUpdatedentitas.utils.ISignal
-
Subscribe to Entity Updated events
Methods
-
Add entity and raise events
Name Type Description entity
index
component
-
Add entity without raising events
Name Type Description entity
-
Check if group has this entity
Name Type Description entity
Returns:
boolean -
Create an Observer for the event type on this group
Name Type Description eventType
-
Get a list of the entities in this group
Returns:
Array -
Gets an entity singleton.
If a group has more than 1 entity, this is an error condition.Returns:
entitas.Entity -
Handle adding and removing component from the entity and raisieevents
Name Type Description entity
index
component
-
Handle adding and removing component from the entity without raising events
Name Type Description entity
-
Remove entity and raise events
Name Type Description entity
index
component
-
Remove entity without raising events
Name Type Description entity
-
Create a string representation for this group:
ex: 'Group(Position)'
Returns:
string -
Update entity and raise events
Name Type Description entity
index
previousComponent
newComponent