Module veloren_world::sim
source ยท Modulesยง
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 ๐
- LEGACY: Remove when people stop caring.
- Version of the world map intended for use in Veloren 0.5.0.
- Version of the world map intended for use in Veloren 0.7.0.
Enumsยง
- WORLD MAP.
- 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).
Constantsยง
- Default base two logarithm of the world size, in chunks, per dimension.
- The default world map.
- 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ยง
- From https://github.com/fastscape-lem/fastscapelib-fortran/blob/master/src/Diffusion.f90
- Finds the horizon map for sunlight for the given chunks.
- Samples a MapSample at a chunk.
- A sample function that grabs the connections at a chunk.
Type Aliasesยง
- Data for the most recent map type. Update this when you add a new map version.