Added logics for saving zone updates
This commit is contained in:
@ -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
|
||||
},
|
||||
|
Reference in New Issue
Block a user