diff --git a/package-lock.json b/package-lock.json index 66a45ff..822c851 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7975,9 +7975,9 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", "dev": true, "license": "ISC", "bin": { diff --git a/src/application/assetStorage.ts b/src/application/assets.ts similarity index 98% rename from src/application/assetStorage.ts rename to src/application/assets.ts index 54b4304..3d98a69 100644 --- a/src/application/assetStorage.ts +++ b/src/application/assets.ts @@ -2,7 +2,7 @@ import config from '@/application/config' import Dexie from 'dexie' import type { AssetDataT } from '@/application/types' -export class AssetStorage { +export class Assets { private db: Dexie constructor() { diff --git a/src/composables/gameComposable.ts b/src/composables/gameComposable.ts index 654c492..aeff449 100644 --- a/src/composables/gameComposable.ts +++ b/src/composables/gameComposable.ts @@ -1,13 +1,13 @@ import type { AssetDataT, HttpResponse, Sprite, SpriteAction } from '@/application/types' import { useGameStore } from '@/stores/gameStore' -import { AssetStorage } from '@/application/assetStorage' +import { Assets } from '@/application/assets' import config from '@/application/config' const textureLoadingPromises = new Map>() export async function loadTexture(scene: Phaser.Scene, assetData: AssetDataT): Promise { const gameStore = useGameStore() - const assetStorage = new AssetStorage() + const assetStorage = new Assets() // Check if the texture is already loaded in Phaser if (gameStore.game.loadedAssets.find((asset) => asset.key === assetData.key)) {