rust/mapgen/src/lib.rs
branchtransitional_engine
changeset 16058 9cbd18220eb7
parent 16053 3402b2185698
child 16060 1b1d5729ff3e
equal deleted inserted replaced
16057:509ecce37522 16058:9cbd18220eb7
   131             .template_types
   131             .template_types
   132             .into_iter()
   132             .into_iter()
   133             .map(|(size, indices)| {
   133             .map(|(size, indices)| {
   134                 (
   134                 (
   135                     TemplateType(size),
   135                     TemplateType(size),
   136                     indices.iter().map(|i| (&templates[*i]).into()).collect(),
   136                     indices
       
   137                         .indices
       
   138                         .iter()
       
   139                         .map(|i| Into::<OutlineTemplate>::into(&templates[*i]))
       
   140                         .map(|o| {
       
   141                             if indices.force_invert == Some(true) {
       
   142                                 o.cavern()
       
   143                             } else {
       
   144                                 o
       
   145                             }
       
   146                         })
       
   147                         .collect(),
   137                 )
   148                 )
   138             })
   149             })
   139             .collect();
   150             .collect();
   140     }
   151     }
   141 
   152