forked from noxious/client
Added game store, stupid tile shit
This commit is contained in:
12
src/stores/game.ts
Normal file
12
src/stores/game.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useGameStore = defineStore('game', {
|
||||
state: () => ({
|
||||
screen: 'login',
|
||||
}),
|
||||
actions: {
|
||||
setScreen(screen: string) {
|
||||
this.screen = screen
|
||||
},
|
||||
}
|
||||
})
|
@ -1,6 +1,5 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import type { Character } from '@/types'
|
||||
import config from '@/config'
|
||||
|
||||
export const useZoneStore = defineStore('zone', {
|
||||
state: () => ({
|
||||
|
@ -51,7 +51,6 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
|
||||
this.isCreateZoneModalShown = !this.isCreateZoneModalShown
|
||||
},
|
||||
reset() {
|
||||
this.zone = null
|
||||
this.tileList = []
|
||||
this.objectList = []
|
||||
this.tool = 'move'
|
||||
|
Reference in New Issue
Block a user