![]() |
Cytopia
0.3
A city building simulation game
|
#include <TerrainGenerator.hxx>
Public Attributes | |
int | mapSize = 128 |
int | seed = 0 |
If the seed is 0, a random seed will be generated by TerrainGenerator::generateTerrain() More... | |
int | seaLevel = 3 |
All tiles with elevation below this will be set as water. More... | |
int | maxHeight = 32 |
int | treeDensity = 50 |
0% no trees, 100% All trees everywhere all the time. More... | |
int | mountainAmplitude |
Both amplifies the mountain noise source, as well as biasing the mountain/plains blend. Expects 0-100. More... | |
int | waterAmount = 5 |
Density of freshwater in addition to coastlines and rivers. Expects 0-100. More... | |
int | coasts |
4 least significant bits are bitmasked, where 0 is a land border and 1 is a coastline. Remaining bits reserved for future use. More... | |
int | rivers = 1 |
Number of rivers to attempt generating. More... | |
std::string | biomes = "{}" |
JSON string of biomes to attempt using, plus any options associated with them. More... | |
std::string | advanced = "{}" |
JSON string of arbitrary advanced option data for future use or mods. More... | |
Definition at line 30 of file TerrainGenerator.hxx.
std::string TerrainSettings::advanced = "{}" |
JSON string of arbitrary advanced option data for future use or mods.
Definition at line 44 of file TerrainGenerator.hxx.
std::string TerrainSettings::biomes = "{}" |
JSON string of biomes to attempt using, plus any options associated with them.
Definition at line 43 of file TerrainGenerator.hxx.
int TerrainSettings::coasts |
4 least significant bits are bitmasked, where 0 is a land border and 1 is a coastline. Remaining bits reserved for future use.
Definition at line 40 of file TerrainGenerator.hxx.
int TerrainSettings::mapSize = 128 |
Definition at line 32 of file TerrainGenerator.hxx.
int TerrainSettings::maxHeight = 32 |
Definition at line 35 of file TerrainGenerator.hxx.
int TerrainSettings::mountainAmplitude |
Both amplifies the mountain noise source, as well as biasing the mountain/plains blend. Expects 0-100.
Definition at line 37 of file TerrainGenerator.hxx.
int TerrainSettings::rivers = 1 |
Number of rivers to attempt generating.
Definition at line 42 of file TerrainGenerator.hxx.
int TerrainSettings::seaLevel = 3 |
All tiles with elevation below this will be set as water.
Definition at line 34 of file TerrainGenerator.hxx.
int TerrainSettings::seed = 0 |
If the seed is 0, a random seed will be generated by TerrainGenerator::generateTerrain()
Definition at line 33 of file TerrainGenerator.hxx.
int TerrainSettings::treeDensity = 50 |
0% no trees, 100% All trees everywhere all the time.
Definition at line 36 of file TerrainGenerator.hxx.
int TerrainSettings::waterAmount = 5 |
Density of freshwater in addition to coastlines and rivers. Expects 0-100.
Definition at line 39 of file TerrainGenerator.hxx.