@ -134,8 +134,6 @@ export class GameState {
*/
cancelAllAsyncOperations() {
this.asyncChannel.cancelAll();
// TODO
// this.app.api.cancelRequests();
}
//// CALLBACKS ////
@ -20,9 +20,6 @@ import { WiredPinsComponent } from "./components/wired_pins";
export class EntityComponentStorage {
constructor() {
// TODO: Figure out if its faster to declare all components here and not
// compile them out (In theory, should make it a fast object in V8 engine)
/* typehints:start */
/** @type {StaticMapEntityComponent} */
@ -9,7 +9,7 @@ const logger = createLogger("entity_manager");
// Manages all entities
// TODO & NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order
// NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order
// This is slower but we need it for the street path generation
export class EntityManager extends BasicSerializableObject {
@ -243,7 +243,6 @@ export function getStringForKeyCode(code) {
return "'";
return String.fromCharCode(code);
@ -43,7 +43,6 @@ export class BaseMap extends BasicSerializableObject {
* @param {number} chunkY
getChunk(chunkX, chunkY, createIfNotExistent = false) {
// TODO: Better generation
const chunkIdentifier = chunkX + "|" + chunkY;
let storedChunk;
@ -90,18 +90,4 @@ export class BaseSavegameInterface {
readIngameTimeSeconds() {
return this.data.dump.time.timeSeconds;
/**
//////// ANTICHEAT ///////
* Detects cheats in the savegame - returns false if the game looks cheated
performAnticheatCheck() {
return true;