Class BiomeResolver
Chooses the biome for a set of conditions from the registered templates' data — the replacement for WorldEditor's hand-written decision tree. A biome is eligible when its elevation tier matches; among eligible biomes, one whose climate envelope contains the reading beats one whose envelope does not, the more central reading wins, and the SelectionWeight scales the score. Ties break on key order, so the result is deterministic for every peer that holds the same templates.
public static class BiomeResolver
- Inheritance
-
BiomeResolver
- Inherited Members
Methods
CandidatesForTier(int)
Every selectable biome whose tier matches, for tools that list what a height could become.
public static List<BiomeTemplate> CandidatesForTier(int elevationTier)
Parameters
elevationTierint
Returns
Select(float, ClimateSample)
The biome for a height and climate reading, or null when no selectable biome is registered.
public static BiomeTemplate Select(float height, ClimateSample sample)
Parameters
heightfloatsampleClimateSample
Returns
Select(float, float, float, ClimateSettings)
The biome for a height, temperature and humidity under a climate's tier boundaries.
public static BiomeTemplate Select(float height, float temperature, float humidity, ClimateSettings climate)
Parameters
heightfloattemperaturefloathumidityfloatclimateClimateSettings
Returns
Select(float, float, float, int)
The biome for a height, temperature, humidity and already-resolved elevation tier.
public static BiomeTemplate Select(float height, float temperature, float humidity, int elevationTier)