A class in Root.Township, Alta.Forests.
A waterfall in river generation, from a top river node to a bottom one, with the river paths that pass through it.
Constructors
| Member | What it is |
|---|
Waterfall() | Creates a Waterfall with default values. |
Fields
1 private and internal field
| Member | What it is |
|---|
private List<RiverPath> paths | River paths that flow over this waterfall, added with AddPath. Backing field for Paths. |
Properties
| Member | What it is |
|---|
RiverNode Bottom { get; private set; } | Bottom node. Set with SetBottom. |
Vector2 Direction { get; private set; } | Flat direction from top to bottom. |
float Height { get; private set; } | Drop from top to bottom. |
float LengthXZ { get; private set; } | Flat distance from top to bottom. |
IEnumerable<RiverPath> Paths { get; } | River paths through the waterfall. |
RiverNode Top { get; set; } | Top node. |
Methods
| Member | What it is |
|---|
void AddPath(RiverPath path) | Adds a river path and links it to this waterfall. |
void SetBottom(RiverNode bottom) | Sets the bottom node and works out direction, flat length and height. |
Used in
Members of other types that take, return or hold a Waterfall: