rust/landgen/src/template_based.rs
branchtransitional_engine
changeset 15905 022ec6b916b7
parent 15828 44b49f255e31
child 15912 6e22f4390b7e
equal deleted inserted replaced
15904:33798b649d9c 15905:022ec6b916b7
    19     fn generate_land<T: Copy + PartialEq, I: Iterator<Item = u32>>(
    19     fn generate_land<T: Copy + PartialEq, I: Iterator<Item = u32>>(
    20         &self,
    20         &self,
    21         parameters: &LandGenerationParameters<T>,
    21         parameters: &LandGenerationParameters<T>,
    22         random_numbers: &mut I,
    22         random_numbers: &mut I,
    23     ) -> Land2D<T> {
    23     ) -> Land2D<T> {
    24         let mut land = Land2D::new(self.outline_template.size, parameters.basic);
    24         let mut land = Land2D::new(&self.outline_template.size, parameters.basic);
    25 
    25 
    26         let mut points = OutlinePoints::from_outline_template(
    26         let mut points = OutlinePoints::from_outline_template(
    27             &self.outline_template,
    27             &self.outline_template,
    28             land.play_box(),
    28             land.play_box(),
    29             land.size().size(),
    29             land.size().size(),