--- a/rust/landgen/src/template_based.rs Tue Jan 25 23:46:11 2022 +0300
+++ b/rust/landgen/src/template_based.rs Thu Jan 27 03:51:13 2022 +0300
@@ -1,11 +1,9 @@
+use crate::{
+ outline::OutlinePoints, outline_template::OutlineTemplate, LandGenerationParameters,
+ LandGenerator,
+};
use integral_geometry::{Point, Size};
use land2d::Land2D;
-use crate::{
- LandGenerationParameters,
- LandGenerator,
- outline::OutlinePoints,
- outline_template::OutlineTemplate
-};
pub struct TemplatedLandGenerator {
outline_template: OutlineTemplate,
@@ -28,7 +26,7 @@
let mut points = OutlinePoints::from_outline_template(
&self.outline_template,
land.play_box(),
- land.size(),
+ land.size().size(),
random_numbers,
);