veloren/world/src/generator/mod.rs
2019-08-31 11:44:52 +01:00

15 lines
380 B
Rust

mod town;
// Reexports
pub use self::town::{TownGen, TownState};
use crate::{column::ColumnSample, util::Sampler};
use common::terrain::Block;
use vek::*;
pub trait Generator<'a, T: 'a>:
Sampler<'a, Index = (&'a T, Vec3<i32>, &'a ColumnSample<'a>), Sample = Option<Block>>
{
fn get_z_limits(&self, state: &'a T, wpos: Vec2<i32>, sample: &ColumnSample) -> (f32, f32);
}