Added logics for saving zone updates

This commit is contained in:
2024-06-13 23:02:37 +02:00
parent b36c8117e7
commit ad94928370
4 changed files with 17 additions and 4 deletions

View File

@ -30,6 +30,9 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
setTiles(tiles: number[][]) {
this.tiles = tiles
},
updateTile(x: number, y: number, tile: number) {
this.tiles[y][x] = tile
},
setTool(tool: string) {
this.tool = tool
},