rust/landgen/src/lib.rs
branchtransitional_engine
changeset 15932 230dc46487ea
parent 15850 44b49f255e31
child 15934 022ec6b916b7
equal deleted inserted replaced
15931:9b73594ac986 15932:230dc46487ea
    24             distance_divisor,
    24             distance_divisor,
    25             skip_distort,
    25             skip_distort,
    26             skip_bezier,
    26             skip_bezier,
    27         }
    27         }
    28     }
    28     }
       
    29 
       
    30     pub fn zero(&self) -> T {
       
    31         self.zero
       
    32     }
       
    33 
       
    34     pub fn basic(&self) -> T {
       
    35         self.basic
       
    36     }
    29 }
    37 }
    30 
    38 
    31 pub trait LandGenerator {
    39 pub trait LandGenerator {
    32     fn generate_land<T: Copy + PartialEq, I: Iterator<Item = u32>>(
    40     fn generate_land<T: Copy + PartialEq, I: Iterator<Item = u32>>(
    33         &self,
    41         &self,