Remove some todos

This commit is contained in:
tobspr 2020-06-28 20:31:22 +02:00
parent b499760d74
commit 64c4816194
6 changed files with 1 additions and 22 deletions

View File

@ -134,8 +134,6 @@ export class GameState {
*/
cancelAllAsyncOperations() {
this.asyncChannel.cancelAll();
// TODO
// this.app.api.cancelRequests();
}
//// CALLBACKS ////

View File

@ -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} */

View File

@ -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 {

View File

@ -243,7 +243,6 @@ export function getStringForKeyCode(code) {
return "'";
}
// TODO
return String.fromCharCode(code);
}

View File

@ -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;

View File

@ -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() {
// TODO
return true;
}
}