Module sim

Source

Modulesยง

diffusion ๐Ÿ”’
erosion ๐Ÿ”’
location ๐Ÿ”’
map ๐Ÿ”’
util ๐Ÿ”’
way ๐Ÿ”’

Structsยง

GenCdf ๐Ÿ”’
A structure that holds cached noise values and cumulative distribution functions for the input that led to those values. See the definition of InverseCdf for a description of how to interpret the types of its fields.
GenCtx ๐Ÿ”’
GenOpts
Location
NearestWaysData
Path
RegionInfo
SimChunk
Way
WorldFileLegacy
LEGACY: Remove when people stop caring.
WorldMap_0_5_0
Version of the world map intended for use in Veloren 0.5.0.
WorldMap_0_7_0
Version of the world map intended for use in Veloren 0.7.0.
WorldOpts
WorldSim

Enumsยง

FileOpts
WorldFile
WORLD MAP.
WorldFileError
Errors when converting a map to the most recent type (currently, shared by the various map types, but at some point we might switch to version-specific errors if it feels worthwhile).
WorldSimStage

Constantsยง

DEFAULT_WORLD_CHUNKS_LG ๐Ÿ”’
Default base two logarithm of the world size, in chunks, per dimension.
DEFAULT_WORLD_MAP
The default world map.
DEFAULT_WORLD_SEED
This is not the seed used to generate the default map, this seed was used to generate a better set of biomes on it as the original ones were unsuitable.

Functionsยง

diffusion
From https://github.com/fastscape-lem/fastscapelib-fortran/blob/master/src/Diffusion.f90
get_horizon_map
Finds the horizon map for sunlight for the given chunks.
sample_pos
Samples a MapSample at a chunk.
sample_wpos
A sample function that grabs the connections at a chunk.

Type Aliasesยง

ModernMap
Data for the most recent map type. Update this when you add a new map version.