rust/landgen/src/lib.rs
changeset 14100 4d22be35cfa2
parent 14069 abb42ba345b6
child 14121 69db1d2e4cec
--- a/rust/landgen/src/lib.rs	Fri Nov 02 23:33:22 2018 +0300
+++ b/rust/landgen/src/lib.rs	Fri Nov 02 22:59:22 2018 +0100
@@ -1,19 +1,24 @@
-pub mod template_based;
+mod outline;
 pub mod outline_template;
-mod outline;
+pub mod template_based;
 
 extern crate integral_geometry;
+extern crate itertools;
 extern crate land2d;
-extern crate itertools;
 
 pub struct LandGenerationParameters<T> {
     zero: T,
     basic: T,
+    distance_divisor: u32,
 }
 
-impl <T: Copy + PartialEq> LandGenerationParameters<T> {
+impl<T: Copy + PartialEq> LandGenerationParameters<T> {
     pub fn new(zero: T, basic: T) -> Self {
-        Self { zero, basic }
+        Self {
+            zero,
+            basic,
+            distance_divisor: 1,
+        }
     }
 }