Some game actions work
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user