<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 { useGameStore } from '@/stores/game'
import { useAssetStore } from '@/stores/assets'
import { useZoneEditorStore } from '@/stores/zoneEditor'
import { useScene } from 'phavuer'

const gameStore = useGameStore()
const zoneStore = useZoneStore()

const scene = useScene()

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