System
Systems
in Ecstatic are just functions that are associated with a group of Components. Whenever the systems are "run", the function is called on every Entity
that has all the Components
associated with that System
.
#
Defining a systemSystems are added to the World
instance with the world.addSystem()
method.
Systems are "run" with the world.systems.run()
method.
The order that systems are added specifies the order in which they are run.