Feat : end turn
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,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 {
|
||||
|
||||
Reference in New Issue
Block a user