Files
screeps/system.js
Gebruiker ef9159260b Chanded some filenames
Removed automatic path placement.
Started command section.
2022-10-23 01:19:58 +02:00

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();
}
}