Biome
A class in Root.Township, Alta.Caves.
Cave biome asset (under Caves/Biomes): loot tables, attribute ranges and element multipliers used by cave generation.
- Listed in World generation
- Inherits or implements
HashedGeneralValue<Biome> - Derived types
Biome,Biome.Create,BiomeDoubleValue,BiomeSingleValue - Nested types
Create - Attributes
HashedPath - Documented in Caves
Constructors
| Member | What it is |
|---|---|
Biome() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private AttributeDoubleValue[] attributes | Backing field for Attributes: min and max values per biome attribute, read by GetAttribute. |
private ElementSingleValue[] elements | Backing field for Elements: per-element multipliers, read by GetElementMultiplier (1 when missing). |
private LootTable[] lootTables | Backing field for LootTables, used when filling docks with generated loot. |
private SpawnData spawnData | Not used in this class. |
Properties
| Member | What it is |
|---|---|
IEnumerable<AttributeDoubleValue> Attributes { get; } | Attribute ranges, each with a min and max value. |
IEnumerable<ElementSingleValue> Elements { get; } | Element multipliers. |
LootTable[] LootTables { get; } | Loot tables used in this biome. |
Methods
| Member | What it is |
|---|---|
void GetAttribute(BiomeAttribute attribute, out float min, out float max) | Gets the min and max for a biome attribute. Both 0 if not set. |
float GetElementMultiplier(Element element) | Gets the multiplier for an element. 1 if not set. |
Used in
Members of other types that take, return or hold a Biome:
BiomeResources.biomes, BiomeResources.Biomes, BiomeSingleValue.BiomeSingleValue, CaveBiomeGenerator.Preview, GeneratedBiome.Basic, GeneratedBiome.biomes, GeneratedBiome.BiomeWeightings, GeneratedBiome.From, GeneratedBiome.GeneratedBiome, GeneratedBiome.GetRandom, GeneratedBiome.To, GeneratingBiome.AddWeighting, GeneratingBiome.biomeWeightings, GeneratingBiome.Generate, IBiomeValues.BiomeWeightings, Section.GetRandomBiome, SerializedGeneratedBiome.from, SerializedGeneratedBiome.to, LootModule.overrideBiome, LootModuleSaveData.biome, LootModuleSaveData1.biome, LootModuleSaveData2.biome, LootModuleSaveData3.biome, LootModuleSaveData4.biome, ForestBiome.biomeDefinition, ForestBiome.BiomeDefinition.