24 lines
697 B
Vue
24 lines
697 B
Vue
<script setup lang="ts">
|
|
const props = defineProps(['game'])
|
|
const self = useState<any>('self')
|
|
const gameObject = useState<{ [key: string]: any }>('gameObject')
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div>
|
|
self = {{ self?.username }}
|
|
<br>
|
|
market_amount = {{ props.game.market_stack?.length }}
|
|
<br>
|
|
market =
|
|
<CardPreview v-for="c in props.game.market" :data="c" :key="c.uuid" />
|
|
<br>
|
|
gems =
|
|
<CardSlot :stack="props.game.gem_stack" />
|
|
</div>
|
|
<div>
|
|
players = {{ props.game.players?.map((e: any) => gameObject[e].username) }}
|
|
</div>
|
|
</div>
|
|
</template> |