rust/landgen/src/template_based.rs
changeset 14032 2869c2ccb1b8
parent 14026 3b3d97ed2286
child 14052 9c817b2eedae
--- a/rust/landgen/src/template_based.rs	Tue Oct 30 05:55:58 2018 +0300
+++ b/rust/landgen/src/template_based.rs	Tue Oct 30 19:05:52 2018 +0300
@@ -1,4 +1,4 @@
-use integral_geometry::Point;
+use integral_geometry::{Point, Size};
 use land2d::Land2D;
 use LandGenerationParameters;
 use LandGenerator;
@@ -6,8 +6,7 @@
 struct OutlineTemplate {
     islands: Vec<Vec<Point>>,
     fill_points: Vec<Point>,
-    width: usize,
-    height: usize,
+    size: Size,
     can_flip: bool,
     can_invert: bool,
     can_mirror: bool,
@@ -45,8 +44,7 @@
         }
 
         let mut land = Land2D::new(
-            self.outline_template.width,
-            self.outline_template.height,
+            self.outline_template.size,
             parameters.basic,
         );