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

Method build

source/game/StarWorldLayout.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65WorldLayout::BlockNoise WorldLayout::BlockNoise::build(Json const& config, uint64_t seed) {
66 BlockNoise blockNoise;
67 blockNoise.horizontalNoise = PerlinF(config.get("horizontalNoise"), staticRandomU64(seed, "HorizontalNoise"));
68 blockNoise.verticalNoise = PerlinF(config.get("verticalNoise"), staticRandomU64(seed, "VerticalNoise"));
69 blockNoise.xNoise = PerlinF(config.get("noise"), staticRandomU64(seed, "XNoise"));
70 blockNoise.yNoise = PerlinF(config.get("noise"), staticRandomU64(seed, "yNoise"));
71 return blockNoise;
72}
73
74WorldLayout::BlockNoise::BlockNoise() {}
75

Callers

nothing calls this directly

Calls 2

staticRandomU64Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected