1
0
forked from noxious/client

Added game store, stupid tile shit

This commit is contained in:
2024-07-07 20:57:10 +02:00
parent 16d830df66
commit 7ec1c73f1f
8 changed files with 69 additions and 38 deletions

12
src/stores/game.ts Normal file
View File

@ -0,0 +1,12 @@
import { defineStore } from 'pinia'
export const useGameStore = defineStore('game', {
state: () => ({
screen: 'login',
}),
actions: {
setScreen(screen: string) {
this.screen = screen
},
}
})

View File

@ -1,6 +1,5 @@
import { defineStore } from 'pinia'
import type { Character } from '@/types'
import config from '@/config'
export const useZoneStore = defineStore('zone', {
state: () => ({

View File

@ -51,7 +51,6 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
this.isCreateZoneModalShown = !this.isCreateZoneModalShown
},
reset() {
this.zone = null
this.tileList = []
this.objectList = []
this.tool = 'move'