added sourcemaps support + sample library, disable member-ordering ts rule
This commit is contained in:
19
src/main.ts
19
src/main.ts
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user