Skip to main content

BiomeSettings

A class in Root.Township, Alta.Caves.

Cave settings asset for how biomes change from layer to layer. Loaded from Resources/Caves/Settings through CaveSettings<BiomeSettings>.Instance and read by CaveBiomeGenerator.

Constructors​

MemberWhat it is
BiomeSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

4 private and internal fields
MemberWhat it is
private float cumulativeTransitionChanceBacking field for CumulativeTransitionChance.
private BiomeAttribute prosperityAttributeBacking field for ProsperityAttribute.
private float transitionProgressMaxBacking field for TransitionProgressMax.
private float transitionProgressMinBacking field for TransitionProgressMin.

Properties​

MemberWhat it is
float CumulativeTransitionChance { get; }Chance added each layer for the cave to start moving to a new biome; it builds up until a transition starts.
BiomeAttribute ProsperityAttribute { get; }The biome attribute used as prosperity.
float TransitionProgressMax { get; }Upper bound of the random progress added per layer while moving between two biomes.
float TransitionProgressMin { get; }Lower bound of the random progress added per layer while moving between two biomes.