Skip to main content

LandBridgeModifier

A class in Root.Township, Alta.Forests.

Forest node map step that adds land bridge edges across a low path between two higher nodes either side.

Constructors​

MemberWhat it is
LandBridgeModifier()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private float elevationMinimumHow far above the lower path both sides must be.
private EdgeType floorTypeEdge types that can have a bridge over them.
private List<Edge> landBridgesBridges created.
private float sideHeightSimilarityMost height difference allowed between the two sides.

Methods​

MemberWhat it is
override void Modify(ForestGeneration forest)For each matching edge, finds two blocked neighbours shared by both ends; if both are high enough above it and similar in height, links them with a land bridge.