forked from noxious/client
Updated tiles, improved folder & file structure, npm update, more progress on zone editor
This commit is contained in:
@ -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
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user