From 10f6dc38026be40f6c66ea41a34ae2e83b04e739 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sat, 4 Jan 2025 19:17:10 +0100 Subject: [PATCH] TS improvements --- package-lock.json | 6 +++--- src/components/game/map/Map.vue | 6 +++--- src/composables/mapComposable.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index cc6c9da..8f58ab4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6518,9 +6518,9 @@ "license": "MIT" }, "node_modules/sass": { - "version": "1.83.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.0.tgz", - "integrity": "sha512-qsSxlayzoOjdvXMVLkzF84DJFc2HZEL/rFyGIKbbilYtAvlCxyuzUeff9LawTn4btVnLKg75Z8MMr1lxU1lfGw==", + "version": "1.83.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.1.tgz", + "integrity": "sha512-EVJbDaEs4Rr3F0glJzFSOvtg2/oy2V/YrGFPqPY24UqcLDWcI9ZY5sN+qyO3c/QCZwzgfirvhXvINiJCE/OLcA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/src/components/game/map/Map.vue b/src/components/game/map/Map.vue index 2cc1579..73db042 100644 --- a/src/components/game/map/Map.vue +++ b/src/components/game/map/Map.vue @@ -5,7 +5,7 @@ diff --git a/src/composables/mapComposable.ts b/src/composables/mapComposable.ts index 52ea604..cc4533f 100644 --- a/src/composables/mapComposable.ts +++ b/src/composables/mapComposable.ts @@ -1,5 +1,5 @@ import config from '@/application/config' -import type { AssetDataT, HttpResponse, Map as MapT } from '@/application/types' +import type { AssetDataT, HttpResponse, UUID } from '@/application/types' import { loadTexture } from '@/composables/gameComposable' import Tilemap = Phaser.Tilemaps.Tilemap @@ -85,7 +85,7 @@ export function FlattenMapArray(tiles: string[][]) { return normalArray } -export async function loadMapTilesIntoScene(map_id: number, scene: Phaser.Scene) { +export async function loadMapTilesIntoScene(map_id: UUID, scene: Phaser.Scene) { // Fetch the list of tiles from the server const tileArray: HttpResponse = await fetch(config.server_endpoint + '/assets/list_tiles/' + map_id).then((response) => response.json())