Class: EntitySet

EntitySet


new EntitySet()

EntitySet provides a way to keep collections of entities based on their Components. Collections should always be retrieved via EntitySystem!

Properties:
Name Type Description
onEntityAdded Signal

Dispatched whenever an entity is added to the collection.

onEntityRemoved Signal

Dispatched whenever an entity is removed from the collection.

Author:
  • derschmale <http://www.derschmale.com>

Members


numEntities

The number of entities currently in the set.

Methods


getEntity()

Returns the entity at the given index.