1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use super::super::geometry::{BoundingBox, Point};
use crate::serde_derive::{Deserialize, Serialize};

pub const DEFAULT_MAP_NAME: &str = "Default Map";
pub const DEFAULT_MAP: &str = "data/map.bin";
pub const DEFAULT_MAP_DIMENSIONS: BoundingBox =
    BoundingBox::new(Point::new(0, 0), Point::new(100, 100));

#[derive(Debug, Deserialize, Serialize)]
pub struct GameMap {
    pub name: String,
    pub dimensions: BoundingBox,
}