equal
deleted
inserted
replaced
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(), |