Basic readme and main.ts

This commit is contained in:
Adam Laycock
2017-11-21 19:46:10 +00:00
parent 3a76931275
commit 4d6ebf3ec9
2 changed files with 28 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
export function loop() {
// Clear non-existing creep memory.
for(let name in Memory.creeps) {
if(!Game.creeps[name]) {
delete Memory[name];
}
}
console.log(`Current tick is ${Game.time}`);
}