<template>
  <Character v-for="item in zoneStore.characters" :key="item.id" :layer="tilemap" :character="item" />
</template>

<script setup lang="ts">
import Character from '@/components/sprites/Character.vue'
import { useZoneStore } from '@/stores/zone'
import { calculateIsometricDepth } from '@/composables/zoneComposable'

const zoneStore = useZoneStore()

const props = defineProps<{
  tilemap: Phaser.Tilemaps.Tilemap
}>()
</script>
