use serde::{Deserialize, Serialize};
use super::profiling::StageStat;
use crate::model::geometry::GridPoint;
use crate::validation::ValidationReport;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[non_exhaustive]
pub struct RejectionReason {
pub position: GridPoint,
pub reason: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct SpawnDebugInfo {
pub candidate_count: usize,
pub rejected_count: usize,
pub rejection_reasons: Vec<RejectionReason>,
pub accepted_count: usize,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct DebugChannels {
pub critical_path_nodes: Vec<String>,
pub door_anchor_positions: Vec<GridPoint>,
pub corridor_centerlines: Vec<Vec<GridPoint>>,
pub rejected_rooms: Vec<String>,
pub spawn_debug: Option<SpawnDebugInfo>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[non_exhaustive]
pub struct DebugBundle {
pub trace_id: Option<String>,
pub stage_stats: Vec<StageStat>,
pub notes: Vec<String>,
pub validation_report: Option<ValidationReport>,
pub debug_channels: Option<DebugChannels>,
}