Table of Contents

Class BiomeAffinity

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

How strongly a race belongs in a biome. A race's affinities say where its settlements are named from, where spawners should favour it, and — through the biome's climate variants — how its places read under the current weather.

[Serializable]
public class BiomeAffinity
Inheritance
BiomeAffinity
Inherited Members

Fields

BiomeID

[Tooltip("The biome this race is at home in.")]
[TemplateReference(typeof(BiomeTemplate))]
public int BiomeID

Field Value

int

Weight

[Tooltip("Relative weight against the race's other affinities; 1 is typical, higher is favoured.")]
[Min(0)]
public float Weight

Field Value

float

Properties

Biome

The referenced biome, or null when it is not registered.

public BiomeTemplate Biome { get; }

Property Value

BiomeTemplate