Class BiomeClimateVariant
A climate reading a biome can be experienced under: the same Forest, frozen or scorched.
Biomes are fixed when the world is generated; what the current climate changes is the variant — and with it the names a place is given and, for the terrain painter, the textures it wears. A template lists its own variants; one that lists none takes the defaults from the scene's ClimateSettings.
[Serializable]
public class BiomeClimateVariant
- Inheritance
-
BiomeClimateVariant
- Inherited Members
Fields
Adjectives
[Header("Naming")]
[Tooltip("Descriptive words the generator prefers under this climate: Frozen, Frost-bitten, Sun-scorched.")]
public string[] Adjectives
Field Value
- string[]
DungeonPrefixes
[Tooltip("Leading words for dungeon names under this climate: 'The Frozen', 'The Sun-cracked'.")]
public string[] DungeonPrefixes
Field Value
- string[]
MaxHumidity
[Range(-1, 1)]
public float MaxHumidity
Field Value
MaxTemperature
[Range(-1, 1)]
public float MaxTemperature
Field Value
MinHumidity
[Range(-1, 1)]
public float MinHumidity
Field Value
MinTemperature
[Header("Activates when the climate is within")]
[Range(-1, 1)]
public float MinTemperature
Field Value
Name
[Tooltip("Shown in tools and usable as a request key, e.g. 'Frozen'.")]
public string Name
Field Value
TextureLayerOverrides
[Header("Terrain")]
[Tooltip("Texture layers the terrain painter substitutes under this climate. Empty keeps the biome's own.")]
public List<TerrainTextureLayer> TextureLayerOverrides
Field Value
Properties
Key
Normalised key: lowercase letters only.
public string Key { get; }
Property Value
Methods
Matches(float, float)
public bool Matches(float temperature, float humidity)
Parameters
Returns
Normalize(string)
Lowercase letters only, so "Sun-scorched" and "sunscorched" are the same key.
public static string Normalize(string value)
Parameters
valuestring