1
0
forked from noxious/client

Updated tiles, improved folder & file structure, npm update, more progress on zone editor

This commit is contained in:
2024-06-11 17:15:53 +02:00
parent 44814907a0
commit 4dcc11706a
12 changed files with 90 additions and 44 deletions

View File

@ -3,15 +3,20 @@ import config from '@/config'
export const useZoneEditorStore = defineStore('zoneEditor', {
state: () => ({
active: true
active: true,
tool: 'move',
selectedTile: null,
}),
getters: {
isActive: (state) => state.active
},
actions: {
toggleActive() {
this.active = !this.active
}
},
setTool(tool: string) {
this.tool = tool
},
setSelectedTile(tile: any) {
this.selectedTile = tile
},
}
})