From 90ac7728d9c77b871e2a462241d2d0b8d344f1da Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sat, 21 Sep 2024 02:18:26 +0200 Subject: [PATCH] Removed console.log --- src/models/loadedZone.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/models/loadedZone.ts b/src/models/loadedZone.ts index 6ee48ac..574462d 100644 --- a/src/models/loadedZone.ts +++ b/src/models/loadedZone.ts @@ -6,7 +6,6 @@ import { ExtendedCharacter } from '../utilities/types' class LoadedZone { private readonly zone: Zone // private readonly npcs: ZoneNPC[] = [] - private readonly grid: number[][] = [] constructor(zone: Zone) { this.zone = zone @@ -16,10 +15,6 @@ class LoadedZone { return this.zone } - public getCharacters(): ExtendedCharacter[] { - return characterManager.getCharactersInZone(this.zone) - } - public async getGrid(): Promise { let grid: number[][] = Array.from({ length: this.zone.height }, () => Array.from({ length: this.zone.width }, () => 0)) @@ -32,10 +27,13 @@ class LoadedZone { } }) - console.log(grid) return grid } + /** + * @TODO: Implement this + * @param position + */ public async isPositionWalkable(position: { x: number; y: number }): Promise { const grid = await this.getGrid() if (!grid?.length) return false