Table of Contents

Class BiomeResolver

Namespace
FishMMO.Shared.Biomes
Assembly
FishMMO.Shared.dll

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

elevationTier int

Returns

List<BiomeTemplate>

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

height float
sample ClimateSample

Returns

BiomeTemplate

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

height float
temperature float
humidity float
climate ClimateSettings

Returns

BiomeTemplate

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)

Parameters

height float
temperature float
humidity float
elevationTier int

Returns

BiomeTemplate