More work on wall positioning, started working on GM asset manager
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user