Worked on game master tools

This commit is contained in:
2024-06-09 23:50:15 +02:00
parent 8198605643
commit 76c8cc57ab
6 changed files with 66 additions and 24 deletions

18
src/stores/zoneEditor.ts Normal file
View File

@ -0,0 +1,18 @@
import { defineStore } from 'pinia'
export const useZoneEditorStore = defineStore('zoneEditor', {
state: () => ({
loaded: false,
tiles: undefined,
}),
getters: {
isLoaded: (state) => state.loaded,
getTiles: (state) => state.tiles,
},
actions: {
loadTiles(tiles: any) {
this.tiles = tiles
this.loaded = true
},
}
})