rust/mapgen/src/template/maze.rs
changeset 16073 5d302b12d837
parent 16035 0caa3dfb3ba2
equal deleted inserted replaced
16072:a4cbc6926439 16073:5d302b12d837
     2 use serde_derive::Deserialize;
     2 use serde_derive::Deserialize;
     3 
     3 
     4 use std::collections::hash_map::HashMap;
     4 use std::collections::hash_map::HashMap;
     5 #[derive(Deserialize)]
     5 #[derive(Deserialize)]
     6 pub struct TemplateDesc {
     6 pub struct TemplateDesc {
     7     width: usize,
     7     width: u32,
     8     height: usize,
     8     height: u32,
     9     max_hedgehogs: u8,
     9     max_hedgehogs: u8,
    10     cell_size: usize,
    10     cell_size: u32,
    11     distortion_limiting_factor: u32,
    11     distortion_limiting_factor: u32,
    12     braidness: u32,
    12     braidness: u32,
    13     invert: bool,
    13     invert: bool,
    14 }
    14 }
    15 
    15