RiverPath
A class in Root.Township, Alta.Forests.
A river segment between two RiverNodes in the forest generator, with its spline mesh, any waterfall and its neighbouring segments at each end.
- Listed in World generation
- Inherits or implements
Path<RiverNode, RiverPath> - Derived types
RiverNode,RiverPath
Constructors
| Member | What it is |
|---|---|
RiverPath(RiverNode from, RiverNode to) | Creates a RiverPath from from and to. |
Properties
| Member | What it is |
|---|---|
float AnticlockwiseAngleEnd { get; set; } | Angle to the next segment anticlockwise at the end node. |
float AnticlockwiseAngleStart { get; set; } | Angle to the next segment anticlockwise at the start node. |
RiverPath AnticlockwiseEnd { get; set; } | Neighbouring segment anticlockwise at the end node. |
RiverPath AnticlockwiseStart { get; set; } | Neighbouring segment anticlockwise at the start node. |
LocationChunk Chunk { get; set; } | The location chunk the segment's mesh belongs to. |
float ClockwiseAngleEnd { get; set; } | Angle to the next segment clockwise at the end node. |
float ClockwiseAngleStart { get; set; } | Angle to the next segment clockwise at the start node. |
RiverPath ClockwiseEnd { get; set; } | Neighbouring segment clockwise at the end node. |
RiverPath ClockwiseStart { get; set; } | Neighbouring segment clockwise at the start node. |
bool IsUnderground { get; } | True if the start node is underground. |
RamSpline Mesh { get; set; } | The river spline mesh. |
Waterfall Waterfall { get; set; } | Waterfall on this segment, if any. |
Methods
| Member | What it is |
|---|---|
void DisableRiver(Chunk chunk) | Hides the river mesh. Hooked to the chunk unloading. |
void EnableRiver(Chunk chunk) | Shows the river mesh. Hooked to the chunk finishing loading. |
void OnDestroy() | Unhooks the mesh from the chunk's load and unload events. |
1 private and internal method
Used in
Members of other types that take, return or hold a RiverPath:
RiverAudio.lastPath, RiverGCoreInstruction.RiverGCoreInstruction, RiverGeneration.overground, RiverGeneration.Overground, RiverGeneration.WorkingOverground, RiverIntersections.Intersection.river, RiverMeshTest.EvaluateMergePower, RiverMeshTest.EvaluateValidMerge, RiverMeshTest.Generate, RiverMeshTest.riversWithChunksAssigned, RiverNode.EvaluateEdgeInformation, RiverNode.Incoming, RiverNode.Outgoing, Waterfall.AddPath, Waterfall.paths, Waterfall.Paths, RiverNodeMapSpawnData.Edge, RiverNodeMapSpawnData.RiverNodeMapSpawnData.