Removed mapList from Pinia store, we fetch them from mapStorage

This commit is contained in:
Dennis Postma 2025-01-23 20:04:47 +01:00
parent 9744083dea
commit 7a922261e3

View File

@ -73,9 +73,6 @@ export const useMapEditorStore = defineStore('mapEditor', {
setEraserMode(mode: string) { setEraserMode(mode: string) {
this.eraserMode = mode this.eraserMode = mode
}, },
setMapList(maps: Map[]) {
this.mapList = maps
},
setTileList(tiles: Tile[]) { setTileList(tiles: Tile[]) {
this.tileList = tiles this.tileList = tiles
}, },
@ -109,7 +106,6 @@ export const useMapEditorStore = defineStore('mapEditor', {
}, },
reset() { reset() {
this.mapId = '' this.mapId = ''
this.mapList = []
this.tileList = [] this.tileList = []
this.mapObjectList = [] this.mapObjectList = []
this.tool = 'move' this.tool = 'move'