equal
deleted
inserted
replaced
1 use integral_geometry::Point; |
1 use integral_geometry::{Point, Size}; |
2 use land2d::Land2D; |
2 use land2d::Land2D; |
3 use LandGenerationParameters; |
3 use LandGenerationParameters; |
4 use LandGenerator; |
4 use LandGenerator; |
5 |
5 |
6 struct OutlineTemplate { |
6 struct OutlineTemplate { |
7 islands: Vec<Vec<Point>>, |
7 islands: Vec<Vec<Point>>, |
8 fill_points: Vec<Point>, |
8 fill_points: Vec<Point>, |
9 width: usize, |
9 size: Size, |
10 height: usize, |
|
11 can_flip: bool, |
10 can_flip: bool, |
12 can_invert: bool, |
11 can_invert: bool, |
13 can_mirror: bool, |
12 can_mirror: bool, |
14 is_negative: bool, |
13 is_negative: bool, |
15 } |
14 } |
43 |
42 |
44 pa.push(island_points); |
43 pa.push(island_points); |
45 } |
44 } |
46 |
45 |
47 let mut land = Land2D::new( |
46 let mut land = Land2D::new( |
48 self.outline_template.width, |
47 self.outline_template.size, |
49 self.outline_template.height, |
|
50 parameters.basic, |
48 parameters.basic, |
51 ); |
49 ); |
52 |
50 |
53 land |
51 land |
54 } |
52 } |