More work on wall positioning, started working on GM asset manager

This commit is contained in:
2024-06-16 15:24:56 +02:00
parent d7cc8ba8fd
commit 0339df9a8d
10 changed files with 165 additions and 196 deletions

View File

@ -7,10 +7,9 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
width: 10,
height: 10,
tiles: [] as number[][],
walls: [] as number[][],
decorations: [] as number[][],
tool: 'move',
drawMode: 'wall',
drawMode: 'tile',
selectedTile: null,
selectedWall: null,
selectedDecoration: null,
@ -35,12 +34,6 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
updateTile(x: number, y: number, tile: number) {
this.tiles[y][x] = tile
},
setWalls(walls: number[][]) {
this.walls = walls
},
updateWall(x: number, y: number, wall: number) {
this.walls[y][x] = wall
},
setDecorations(decorations: number[][]) {
this.decorations = decorations
},
@ -71,7 +64,7 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
this.height = 10
this.tiles = []
this.tool = 'move'
this.drawMode = 'wall'
this.drawMode = 'tile'
this.selectedTile = null
this.selectedWall = null
this.selectedDecoration = null