23 lines
466 B
JavaScript
23 lines
466 B
JavaScript
/**
|
|
* Basis of the entire system. Everything will be managed from here on out.
|
|
*/
|
|
const rooms = require("_rooms")
|
|
const spawns = require("_spawns")
|
|
const creeps = require("_creeps")
|
|
|
|
module.exports = {
|
|
// Gets called when recompiling and when Restart command is called.
|
|
start: function () {
|
|
rooms.start();
|
|
spawns.start();
|
|
creeps.start();
|
|
},
|
|
|
|
// Gets called every tick.
|
|
update: function () {
|
|
rooms.update();
|
|
spawns.update();
|
|
creeps.update();
|
|
}
|
|
}
|