17 lines
457 B
Vue
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> |