]>
git.r.bdr.sh - rbdr/serpentity/blob - lib/serpentity/system.js
76bf30609f53991f6e0c08fc93f2f740ced5600b
4 * Systems contain most of the logic, and work with nodes in order to
5 * act and change their values.
7 * You usually want to inherit from this class and override the
8 * three methods. They are shown here to document the interface.
11 const System
= class System
{
14 * This will be run when the system is added to the engine
17 // Override with added(engine)
18 // Receives an instance of the serpentity engine
22 * This will be run when the system is removed from the engine
25 // Override with removed(engine)
26 // Receives an instance of the serpentity engine
30 * This will run every time the engine's update method is called
33 // Override with update(dt)
34 // Receives a delta of the time
38 module
.exports
= System
;