1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

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() { cancelAllAsyncOperations() {
this.asyncChannel.cancelAll(); this.asyncChannel.cancelAll();
// TODO
// this.app.api.cancelRequests();
} }
//// CALLBACKS //// //// CALLBACKS ////

View File

@ -20,9 +20,6 @@ import { WiredPinsComponent } from "./components/wired_pins";
*/ */
export class EntityComponentStorage { export class EntityComponentStorage {
constructor() { 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 */ /* typehints:start */
/** @type {StaticMapEntityComponent} */ /** @type {StaticMapEntityComponent} */

View File

@ -9,7 +9,7 @@ const logger = createLogger("entity_manager");
// Manages all entities // 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 // This is slower but we need it for the street path generation
export class EntityManager extends BasicSerializableObject { export class EntityManager extends BasicSerializableObject {

View File

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

View File

@ -43,7 +43,6 @@ export class BaseMap extends BasicSerializableObject {
* @param {number} chunkY * @param {number} chunkY
*/ */
getChunk(chunkX, chunkY, createIfNotExistent = false) { getChunk(chunkX, chunkY, createIfNotExistent = false) {
// TODO: Better generation
const chunkIdentifier = chunkX + "|" + chunkY; const chunkIdentifier = chunkX + "|" + chunkY;
let storedChunk; let storedChunk;

View File

@ -90,18 +90,4 @@ export class BaseSavegameInterface {
readIngameTimeSeconds() { readIngameTimeSeconds() {
return this.data.dump.time.timeSeconds; return this.data.dump.time.timeSeconds;
} }
/**
//////// ANTICHEAT ///////
/**
* Detects cheats in the savegame - returns false if the game looks cheated
*/
performAnticheatCheck() {
// TODO
return true;
}
} }