| 63 | } |
| 64 | |
| 65 | WorldLayout::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 | |
| 74 | WorldLayout::BlockNoise::BlockNoise() {} |
| 75 |
nothing calls this directly
no test coverage detected