Files
front/components/PlayerSlot.vue
T
2024-04-20 00:36:27 +02:00

17 lines
457 B
Vue

<script setup lang="ts">
const props = defineProps(['player'])
const gameObject = useState<{ [key: string]: any }>('gameObject')
</script>
<template>
<span>
hand =
<CardSlot :stack="gameObject[props.player]?.hand" />
<br>
stack =
<CardSlot :stack="gameObject[props.player]?.stack_pile" />
<br>
discard =
<CardSlot :stack="gameObject[props.player]?.discard_pile" />
</span>
</template>