load players
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
<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 =
|
||||
@@ -15,7 +18,7 @@ const props = defineProps(['game'])
|
||||
<CardSlot :stack="props.game.gem_stack" />
|
||||
</div>
|
||||
<div>
|
||||
players = {{ props.game.players }}
|
||||
players = {{ props.game.players?.map((e: any) => gameObject[e].username) }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user