]>
git.r.bdr.sh - rbdr/serpentity/blob - lib/serpentity/system.js
2 * Systems contain most of the logic, and work with nodes in order to
3 * act and change their values.
5 * You usually want to inherit from this class and override the
6 * three methods. They are shown here to document the interface.
12 * This will be run when the system is added to the engine
15 // Override with added(engine)
16 // Receives an instance of the serpentity engine
20 * This will be run when the system is removed from the engine
23 // Override with removed(engine)
24 // Receives an instance of the serpentity engine
28 * This will run every time the engine's update method is called
31 // Override with update(dt)
32 // Receives a delta of the time