rust/mapgen/src/lib.rs
branchtransitional_engine
changeset 16062 1860852892c0
parent 16061 31cc1e450273
child 16064 0caa3dfb3ba2
equal deleted inserted replaced
16061:31cc1e450273 16062:1860852892c0
     2 pub mod theme;
     2 pub mod theme;
     3 
     3 
     4 use self::theme::Theme;
     4 use self::theme::Theme;
     5 use crate::template::outline::TemplateCollectionDesc as OutlineTemplateCollectionDesc;
     5 use crate::template::outline::TemplateCollectionDesc as OutlineTemplateCollectionDesc;
     6 use crate::template::wavefront_collapse::TemplateCollectionDesc as WfcTemplateCollectionDesc;
     6 use crate::template::wavefront_collapse::TemplateCollectionDesc as WfcTemplateCollectionDesc;
       
     7 use crate::template::maze::TemplateCollectionDesc as MazeTemplateCollectionDesc;
       
     8 
     7 use std::path::{Path, PathBuf};
     9 use std::path::{Path, PathBuf};
     8 
    10 
     9 use land2d::Land2D;
    11 use land2d::Land2D;
    10 use landgen::{
    12 use landgen::{
    11     outline_template_based::{
    13     outline_template_based::{
   185             .template_types
   187             .template_types
   186             .into_iter()
   188             .into_iter()
   187             .map(|(size, indices)| {
   189             .map(|(size, indices)| {
   188                 (
   190                 (
   189                     TemplateType(size),
   191                     TemplateType(size),
   190                     indices.iter().map(|i| (&templates[*i]).into()).collect(),
   192                     indices.indices.iter().map(|i| (&templates[*i]).into()).collect(),
   191                 )
   193                 )
   192             })
   194             })
   193             .collect();
   195             .collect();
   194     }
   196     }
   195 
   197