use std::collections::BTreeMap;
use serde::{Deserialize, Serialize};
use crate::model::geometry::WorldPoint;
use super::points::{PcgPoint, PropertyValue};
pub type Polyline3 = Vec<WorldPoint>;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[non_exhaustive]
pub enum ChannelKind {
Rooms,
Doors,
Corridors,
FloorTiles,
WallTiles,
ItemSpawns,
EnemySpawns,
Debug,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[non_exhaustive]
pub struct NamedChannel {
pub name: String,
pub kind: ChannelKind,
pub points: Vec<PcgPoint>,
pub polylines: Vec<Polyline3>,
pub metadata: BTreeMap<String, PropertyValue>,
}