rust/mapgen/src/lib.rs
branchtransitional_engine
changeset 16062 1860852892c0
parent 16061 31cc1e450273
child 16064 0caa3dfb3ba2
--- a/rust/mapgen/src/lib.rs	Tue Sep 10 13:56:51 2024 +0200
+++ b/rust/mapgen/src/lib.rs	Tue Sep 10 18:21:31 2024 +0200
@@ -4,6 +4,8 @@
 use self::theme::Theme;
 use crate::template::outline::TemplateCollectionDesc as OutlineTemplateCollectionDesc;
 use crate::template::wavefront_collapse::TemplateCollectionDesc as WfcTemplateCollectionDesc;
+use crate::template::maze::TemplateCollectionDesc as MazeTemplateCollectionDesc;
+
 use std::path::{Path, PathBuf};
 
 use land2d::Land2D;
@@ -187,7 +189,7 @@
             .map(|(size, indices)| {
                 (
                     TemplateType(size),
-                    indices.iter().map(|i| (&templates[*i]).into()).collect(),
+                    indices.indices.iter().map(|i| (&templates[*i]).into()).collect(),
                 )
             })
             .collect();