Skip to main content

Module world

Module world 

Source
Expand description

World generation — heightmaps, climate, rivers, roads, settlements, history.

Generates a complete world map from noise-based terrain through climate simulation, river carving, settlement placement, and procedural history.

Structs§

BiomeClassifier
Whittaker biome diagram: classifies (temperature × moisture) → BiomeId.
BiomeId
Opaque biome identifier.
BiomeParams
Parameters describing a biome.
ClimateSimulator
Simulates temperature and moisture based on latitude, elevation, and ocean proximity.
HeightmapWorld
Generates terrain using multi-octave Perlin noise with domain warping and a continent falloff mask.
HistoryEvent
A single historical event.
NameGenerator
Markov-chain (order 2) name generator trained on culture syllable lists.
RiverSystem
Generates rivers by flowing downhill from high-elevation sources.
RoadNetwork
Connects settlements with A* paths that prefer flat terrain.
Settlement
A settlement on the world map.
SettlementPlacer
Places settlements on flat, fertile land.
WorldBuilder
Convenience builder that orchestrates all world-generation steps.
WorldCell
A single cell on the world map.
WorldHistory
Generates world history as a sequence of events.
WorldMap
The complete world map.

Enums§

Culture
Culture for name generation.
EventKind
Kind of historical event.
SettlementKind
Settlement size/kind.