From 27ccdf165c5c851e106d37ec4c713427f15131e4 Mon Sep 17 00:00:00 2001 From: jonny Date: Sat, 19 Jun 2021 15:24:27 +0200 Subject: [PATCH] fixed merge imports --- front/src/Phaser/Game/GameMap.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/front/src/Phaser/Game/GameMap.ts b/front/src/Phaser/Game/GameMap.ts index dd567585..6148830e 100644 --- a/front/src/Phaser/Game/GameMap.ts +++ b/front/src/Phaser/Game/GameMap.ts @@ -1,6 +1,3 @@ -import type {ITiledMap, ITiledMapLayer} from "../Map/ITiledMap"; -import {LayersIterator} from "../Map/LayersIterator"; -import { CustomVector, Vector2 } from '../../utility/vector'; import type { ITiledMap, ITiledMapLayerProperty } from "../Map/ITiledMap"; import { LayersIterator } from "../Map/LayersIterator"; @@ -11,8 +8,8 @@ export type PropertyChangeCallback = (newValue: string | number | boolean | unde * It is used to handle layer properties. */ export class GameMap { - private key: number|undefined; - private lastProperties = new Map(); + private key: number | undefined; + private lastProperties = new Map(); private callbacks = new Map>(); /** @@ -79,12 +76,12 @@ export class GameMap { } } - public getCurrentProperties(): Map { + public getCurrentProperties(): Map { return this.lastProperties; } - private getProperties(key: number): Map { - const properties = new Map(); + private getProperties(key: number): Map { + const properties = new Map(); for (const layer of this.layersIterator) { @@ -95,7 +92,6 @@ export class GameMap { const tiles = layer.data as number[]; if (tiles[key] == 0) { continue; - tileIndex = tiles[key] } // There is a tile in this layer, let's embed the properties if (layer.properties !== undefined) {