Files
screeps/_system.js
2022-04-30 14:23:44 +02:00

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