Skip to main content

SpecialBiomeAttributes

A class in Root.Township, the global namespace.

Global settings asset listing the biome attributes forest generation fills in for each node and path (depth, radius, elevation, slope and so on). Get it with GlobalSettings<SpecialBiomeAttributes>.Instance.

Constructors​

MemberWhat it is
SpecialBiomeAttributes()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

9 private and internal fields
MemberWhat it is
private BiomeAttribute depthBacking field for Depth.
private BiomeAttribute distanceFromBorderBacking field for DistanceFromBorder.
private BiomeAttribute distanceFromPathBacking field for DistanceFromPath.
private BiomeAttribute elevationBacking field for Elevation.
private BiomeAttribute radiusBacking field for Radius.
private BiomeAttribute relativeElevationMaxBacking field for RelativeElevationMax.
private BiomeAttribute relativeElevationMinBacking field for RelativeElevationMin.
private BiomeAttribute slopeBacking field for Slope.
private BiomeAttribute traversalDepthBacking field for TraversalDepth.

Properties​

MemberWhat it is
BiomeAttribute Depth { get; }Attribute for cave layer depth. Cave biomes set it to 0.
BiomeAttribute DistanceFromBorder { get; }Attribute set to the distance from the forest border.
BiomeAttribute DistanceFromPath { get; }Attribute set on spawns to their distance from the path edge.
BiomeAttribute Elevation { get; }Attribute set to a node's height or a path's average height.
BiomeAttribute Radius { get; }Attribute set to a node's radius.
BiomeAttribute RelativeElevationMax { get; }Attribute set to the highest height difference to neighbouring nodes.
BiomeAttribute RelativeElevationMin { get; }Attribute set to the lowest height difference to neighbouring nodes.
BiomeAttribute Slope { get; }Attribute for slope. Nodes get 0; paths get the height change over their length.
BiomeAttribute TraversalDepth { get; }Attribute set to the path distance from the forest's entrance nodes.

Used in​

Members of other types that take, return or hold a SpecialBiomeAttributes: