<template>
  <MapObject v-for="mapObject in mapStore.map?.mapObjects" :tilemap="tilemap" :placedMapObject />
</template>

<script setup lang="ts">
import MapObject from '@/components/game/map/partials/MapObject.vue'
import { useMapStore } from '@/stores/mapStore'

const mapStore = useMapStore()

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