pub trait Generator {
type Params;
// Required method
fn generate(&self, params: &Self::Params, vsid: u32) -> Vxl;
}Expand description
Procedural world generator. Implementors produce a Vxl from
CaveParams (or their own typed parameter struct).
generate is expected to be deterministic in its parameters: the
same params + vsid MUST produce a byte-stable Vxl across
runs (within the same toolchain — like the rasterizer’s tests,
cross-CPU FP determinism is best-effort).
Required Associated Types§
Sourcetype Params
type Params
Parameter type. Most generators alias this to CaveParams.