Updates and Updates Project

This commit is contained in:
2025-07-05 17:41:50 -03:00
parent cd90f22c1d
commit 0f9479f2c3
39 changed files with 111 additions and 1073 deletions

View File

@@ -1,5 +1,3 @@
import { ErrorMapper } from "utils/ErrorMapper";
declare global {
/*
Example types, expand on these or remove them and add your own.
@@ -31,13 +29,16 @@ declare global {
// When compiling TS to JS and bundling with rollup, the line numbers and file names in error messages change
// This utility uses source maps to get the line numbers and file names of the original, TS source code
export const loop = ErrorMapper.wrapLoop(() => {
console.log(`Current game tick is ${Game.time}`);
// export const loop = ErrorMapper.wrapLoop(() => {
// console.log(`Current game tick is ${Game.time}`);
// Automatically delete memory of missing creeps
for (const name in Memory.creeps) {
if (!(name in Game.creeps)) {
delete Memory.creeps[name];
}
}
});
// // Automatically delete memory of missing creeps
// for (const name in Memory.creeps) {
// if (!(name in Game.creeps)) {
// delete Memory.creeps[name];
// }
// }
// });
export const loop = () => {
console.log(`Current game tick is ${Game.time}`);
};