added sourcemaps support + sample library, disable member-ordering ts rule

This commit is contained in:
Resi Respati
2017-11-25 01:44:20 +07:00
parent 84ef1f8da8
commit fee7ab06c7
5 changed files with 89 additions and 7 deletions

View File

@@ -1,11 +1,16 @@
import { ErrorMapper } from "./utils/ErrorMapper";
export function loop() {
// Clear non-existing creep memory.
for(let name in Memory.creeps) {
if(!Game.creeps[name]) {
delete Memory[name];
try {
// Clear non-existing creep memory.
for (const name in Memory.creeps) {
if (!Game.creeps[name]) {
delete Memory[name];
}
}
}
console.log(`Current tick is ${Game.time}`);
console.log(`Current tick is ${Game.time}`);
} catch (e) {
console.error(ErrorMapper.sourceMappedStackTrace(e));
}
}