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