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.
- Listed in World generation
- Nested types
Intersection
Constructors
| Member | What it is |
|---|---|
RiverIntersections() | Creates a RiverIntersections with default values. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private Dictionary<Chunk, List<RiverIntersections.Intersection>> intersections | Crossings grouped by the location chunk they fall in. |
Methods
| Member | What 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: