RiverEdgeFill
A class in Root.Township, Alta.Forests.
Forest fill step that places objects along river banks.
- Listed in World generation
- Inherits or implements
ForestFillCore - Documented in Forest
Constructors
| Member | What it is |
|---|---|
RiverEdgeFill() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private float extraRadius | Extra distance from the river passed to the segments. |
private bool isSpawningOnRivers | Use normal river segments. Off means waterfalls only. |
private bool isSpawningOnWaterfalls | Also use waterfall segments. |
private static Logger logger | Logger for this class. |
private RiverGenerator river | River generator to read edge segments from. |
private float step | Spacing between points. |
Methods
| Member | What it is |
|---|---|
protected override async Task GenerateInternal(LocationChunk chunk, InstructionSet instructions) | Takes points from river edge segments in the chunk, raycasts them and adds spawn instructions for those that pass. |