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

View File

@ -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) => {