Module site

Source

Re-exports§

pub use self::economy::Economy;
pub use self::genstat::GenStatPlotKind;
pub use self::genstat::GenStatSiteKind;
pub use self::genstat::SitesGenMeta;
pub use self::plot::Plot;
pub use self::plot::PlotKind;
pub use self::plot::foreach_plot;
pub use self::util::Dir;

Modules§

economy
gen 🔒
genstat
Data structures and functions for tracking site generation statistics.
namegen
plot
tile 🔒
util

Structs§

Painter
PrimitiveRef
Site
SpawnRules

Enums§

Fill
Primitive
SiteKind
TileKind

Traits§

Structure

Functions§

aabr_tiles
aabr_with_z
Extend a 2d AABR to a 3d AABB
get_gradient_average 🔒
Returns the average gradient of the chunks neighboring the center of the given aabr, as well as the gradient of the chunk at the center of the aabr itself.
reseed 🔒
Seed a new RNG from an old RNG, thereby making the old RNG independent of changing use of the new RNG. The practical effect of this is to reduce the extent to which changes to child generation algorithm produce a ‘butterfly effect’ on their parent generators, meaning that generators will be less likely to produce entirely different outcomes if some detail of a generation algorithm changes slightly. This is generally good and makes worldgen code easier to maintain and less liable to breaking changes.
temp_at_wpos 🔒
test_site
wpos_is_hazard 🔒