Skip to main content

RiverIntersections

A class in Root.Township, Alta.Forests.

Generation helper that finds where forest edges cross above-ground river paths, marks those edges as water bridges and groups the crossings by location chunk.

Constructors​

MemberWhat it is
RiverIntersections()Creates a RiverIntersections with default values.

Fields​

1 private and internal field
MemberWhat it is
private Dictionary<Chunk, List<RiverIntersections.Intersection>> intersectionsCrossings grouped by the location chunk they fall in.

Methods​

MemberWhat it is
void Evaluate(RiverGeneration river)Checks every edge of the relevant type against each river path, recording crossings and setting the edge type to WaterBridge.
IEnumerable<RiverIntersections.Intersection> Get(Chunk chunk)Crossings inside the given chunk, or none.

Used in​

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