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:
parent
b499760d74
commit
64c4816194
@ -134,8 +134,6 @@ export class GameState {
|
|||||||
*/
|
*/
|
||||||
cancelAllAsyncOperations() {
|
cancelAllAsyncOperations() {
|
||||||
this.asyncChannel.cancelAll();
|
this.asyncChannel.cancelAll();
|
||||||
// TODO
|
|
||||||
// this.app.api.cancelRequests();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//// CALLBACKS ////
|
//// CALLBACKS ////
|
||||||
|
@ -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} */
|
||||||
|
@ -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 {
|
||||||
|
@ -243,7 +243,6 @@ export function getStringForKeyCode(code) {
|
|||||||
return "'";
|
return "'";
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
|
||||||
return String.fromCharCode(code);
|
return String.fromCharCode(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user