| 395 | } |
| 396 | |
| 397 | MaterialHue WorldTemplate::biomeModHueShift(BiomeIndex biomeIndex, ModId mod) const { |
| 398 | if (m_layout && biomeIndex != NullBiomeIndex) { |
| 399 | auto const& biome = m_layout->getBiome(biomeIndex); |
| 400 | if (mod == biome->surfacePlaceables.grassMod || mod == biome->surfacePlaceables.ceilingGrassMod |
| 401 | || mod == biome->undergroundPlaceables.grassMod |
| 402 | || mod == biome->undergroundPlaceables.ceilingGrassMod) |
| 403 | return biome->materialHueShift; |
| 404 | } |
| 405 | return MaterialHue(); |
| 406 | } |
| 407 | |
| 408 | WeatherPool WorldTemplate::weathers() const { |
| 409 | if (m_worldParameters) |
no outgoing calls
no test coverage detected