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
| Member | What it is |
|---|
BiomeSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private float cumulativeTransitionChance | Backing field for CumulativeTransitionChance. |
private BiomeAttribute prosperityAttribute | Backing field for ProsperityAttribute. |
private float transitionProgressMax | Backing field for TransitionProgressMax. |
private float transitionProgressMin | Backing field for TransitionProgressMin. |
Properties
| Member | What 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. |