changed git root

This commit is contained in:
Gebruiker
2022-10-23 01:23:27 +02:00
parent ef9159260b
commit 90448c79e4
12 changed files with 5 additions and 0 deletions

24
default/system.js Normal file
View File

@@ -0,0 +1,24 @@
/**
* 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();
}
}