new EntitySystem()
Methods
-
getEntitySet(components)
-
Retrieves an
EntitySet
containing entities matching the given components.Parameters:
Name Type Description components
An 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 dt
The time in milliseconds since last update.