text: import fs from 'fs'
  import { dirname, join } from 'path'
  import { fileURLToPath } from 'url'
  
  import logger from './logger.js'
  import { chunks } from './chunk.js'
  
  const log = logger(import.meta)
  
  const world_folder = join(
    dirname(fileURLToPath(import.meta.url)),
    '..',
    'world'
  )
  
  export const floor1 = {
    spawn_position: { x: 469.5, y: 162, z: 646.5, yaw: 25, pitch: 0 },
    chunks: chunks(join(world_folder, 'floor1', 'region')),
    mob_positions: JSON.parse(
      fs.readFileSync(join(world_folder, 'floor1', 'mobs.json'), 'utf8')
    ),
    items: JSON.parse(
      fs.readFileSync(join(world_folder, 'floor1', 'items.json'), 'utf8')
    ),
    traders: JSON.parse(
      fs.readFileSync(join(world_folder, 'floor1', 'traders.json'), 'utf8')
    ),
    teleportation_stones: JSON.parse(
      fs.readFileSync(
        join(world_folder, 'floor1', 'teleportation_stones.json'),
        'utf8'
      )
    ),
  }
  
  log.info(
    {
      world: 'floor1',
      mobs: floor1.mob_positions.length,
      items: Object.entries(floor1.items).length,
      teleportation_stones: floor1.teleportation_stones.length,
    },
    'World loaded'
  )
  