use crate::model::geometry::{GridPoint, Transform3};
use crate::model::room::RoomId;
use serde::{Deserialize, Serialize};
pub type SpawnPointId = String;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[non_exhaustive]
pub struct SpawnPoint {
pub id: SpawnPointId,
pub room_id: RoomId,
pub kind: SpawnKind,
pub grid_pos: GridPoint,
pub world_transform: Option<Transform3>,
pub metadata: SpawnMetadata,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[non_exhaustive]
pub enum SpawnKind {
Item,
Enemy,
Boss,
Reward,
Interaction,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[non_exhaustive]
pub struct SpawnMetadata {
pub spawn_tag: String,
pub rarity_tier: Option<u8>,
pub enemy_pool_tag: Option<String>,
pub encounter_id: Option<String>,
pub wave_id: Option<String>,
pub difficulty: Option<u16>,
pub seed: u64,
}