| 188 | } |
| 189 | |
| 190 | float BiomeDatabase::pickHueShiftFromJson(Json source, uint64_t seed, String const& key) { |
| 191 | if (source.isNull()) |
| 192 | return 0; |
| 193 | auto options = jsonToFloatList(source); |
| 194 | if (options.size() == 0) |
| 195 | return 0; |
| 196 | auto t = staticRandomU32(seed, key); |
| 197 | return options.at(t % options.size()); |
| 198 | } |
| 199 | |
| 200 | BiomePlaceables BiomeDatabase::readBiomePlaceables(Json const& config, uint64_t seed, float biomeHueShift) const { |
| 201 | auto& root = Root::singleton(); |
nothing calls this directly
no test coverage detected