MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / TerrainSelectorParameters

Method TerrainSelectorParameters

source/game/StarTerrainDatabase.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace Star {
21
22TerrainSelectorParameters::TerrainSelectorParameters() {
23 seed = Random::randu64();
24 worldWidth = 0;
25 commonality = 1.0f;
26}
27
28TerrainSelectorParameters::TerrainSelectorParameters(Json const& v) {
29 worldWidth = v.getUInt("worldWidth");

Callers

nothing calls this directly

Calls 3

randu64Function · 0.85
getUIntMethod · 0.80
getFloatMethod · 0.80

Tested by

no test coverage detected