Feat : end turn

This commit is contained in:
2024-06-27 19:40:29 +02:00
parent 0a8313b69d
commit 6cc91d58ce
6 changed files with 55 additions and 17 deletions
-1
View File
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { containerEvents } from '~/netcode/events';
import type { Container } from '~/netcode/interfaces';
import type { CardParser } from '~/netcode/interfaces/cards';
export interface Props {
container: Container
+11 -4
View File
@@ -1,11 +1,18 @@
<script setup lang="ts">
import goStore, { buy, useEffect } from '@/netcode';
import { CardEffects, type Effect } from '@/netcode/Effect'
import { CardType } from '@/netcode/Card'
import gsap from 'gsap'
import type { Container } from '~/netcode/interfaces';
export interface Props {
container: Container
}
const props = defineProps<Props>()
const authStore = useAuthStore()
const selfPlayer = computed(() => authStore.logged ? playerList.value?.find(p => p.user.userId == authStore.selfUser.userId) : undefined)
const isTurn = computed(() => goStore.self && goStore.current_game?.started && (goStore.self.team == goStore.current_game.current_turn))
const clientStore = useClientSideStore()
+1 -2
View File
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { endTurn } from "~/netcode";
import type { Game, Player } from "~/netcode/interfaces";
import { CardEffects, type CardParser } from "~/netcode/interfaces/cards";
import type { Game, Player } from '~/netcode/interfaces';
import { useClientSideStore } from "~/stores/turn";
export interface Props {