Added game store, stupid tile shit
This commit is contained in:
@ -7,16 +7,18 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { type Ref, ref } from 'vue'
|
||||
import { useSocketStore } from '@/stores/socket'
|
||||
import { useGameStore } from '@/stores/game'
|
||||
import Notifications from '@/components/utilities/Notifications.vue'
|
||||
import Login from '@/screens/Login.vue'
|
||||
import Register from '@/screens/Register.vue'
|
||||
import Characters from '@/screens/Characters.vue'
|
||||
import Game from '@/screens/Game.vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useSocketStore } from '@/stores/socket'
|
||||
|
||||
const screen: Ref<string> = ref('login')
|
||||
const socket = useSocketStore()
|
||||
const gameStore = useGameStore()
|
||||
const {screen} = storeToRefs(gameStore);
|
||||
|
||||
socket.$subscribe(
|
||||
(mutation, state) => {
|
||||
|
Reference in New Issue
Block a user