Some game actions work

This commit is contained in:
2024-04-20 15:04:32 +02:00
parent 571bcd14d3
commit 114e3f712e
6 changed files with 183 additions and 43 deletions
+18
View File
@@ -0,0 +1,18 @@
<script setup lang="ts">
export interface Props {
players?: string[]
current_team?: string
}
const props = withDefaults(defineProps<Props>(), {
players: () => [],
})
const players = useState<{ [key: string]: any }>('players')
</script>
<template>
<div v-for="player in props.players">
<PlayerSlot :player="players[player]" :current_team="props.current_team" />
</div>
</template>