Table of Contents

Class BiomeClimateVariant

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

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

float

MaxTemperature

[Range(-1, 1)]
public float MaxTemperature

Field Value

float

MinHumidity

[Range(-1, 1)]
public float MinHumidity

Field Value

float

MinTemperature

[Header("Activates when the climate is within")]
[Range(-1, 1)]
public float MinTemperature

Field Value

float

Name

[Tooltip("Shown in tools and usable as a request key, e.g. 'Frozen'.")]
public string Name

Field Value

string

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

List<TerrainTextureLayer>

Properties

Key

Normalised key: lowercase letters only.

public string Key { get; }

Property Value

string

Methods

Matches(float, float)

public bool Matches(float temperature, float humidity)

Parameters

temperature float
humidity float

Returns

bool

Normalize(string)

Lowercase letters only, so "Sun-scorched" and "sunscorched" are the same key.

public static string Normalize(string value)

Parameters

value string

Returns

string