new EntitySystem()
Properties:
| Name | Type | Description |
|---|---|---|
scene |
The scene the EntitySystem is running on. |
Methods
-
getEntitySet(components)
-
Retrieves an
EntitySetcontaining entities matching the given components.Parameters:
Name Type Description componentsAn Array of component types.
-
onStarted()
-
Called when a system is started.
-
onStopped()
-
Called when a system is stopped. Anything changed by the system should be undone here.
-
onUpdate(dt)
-
Called when a system needs to update.
Parameters:
Name Type Description dtThe time in milliseconds since last update.