Skip to main content

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.

Constructors​

MemberWhat it is
RiverPath(RiverNode from, RiverNode to)Creates a RiverPath from from and to.

Properties​

MemberWhat 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​

MemberWhat 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
MemberWhat it is
internal void ForEach(Func<object, object> p)Unfinished stub. Throws NotImplementedException.

Used in​

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