ecs.defineSystem()
ecs.defineSystem([terms], behavior)
Description
Define a system.
Parameters
Property | Type | Description |
---|
terms | [string] | terms to query |
behavior | function | a function that runs on the world every tick. |
Returns
A system that can be passed to ecs.registerBehavior()