A class in Root.Township, Alta.Forests.
A forest generation step that places generation cores along the river per chunk: on paths, river openings, forks, exits and waterfall tops.
Constructors
| Member | What it is |
|---|
RiverEncounters() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private ObjectPipeline exits | Pipeline for nodes where the river ends. |
private ObjectPipeline forks | Pipeline for nodes where more than two overground paths meet. |
private ObjectPipeline openings | Pipeline for nodes where the river starts (skipped if the node's static volume multiplier is above 1). |
private ObjectPipeline paths | Pipeline for the middle of each overground path that isn't a waterfall. |
private ObjectPipeline waterfallTops | Pipeline for the top of each waterfall. |
Methods
| Member | What it is |
|---|
void Initialize() | Does nothing. |
5 private and internal methods
| Member | What it is |
|---|
private void Alta.Forests.IForestGeneration.ClearDynamic(LocationChunk chunk) | Does nothing. |
private void Alta.Forests.IForestGeneration.ClearStatic(LocationChunk chunk) | Does nothing. |
private async Task Alta.Forests.IForestGeneration.GenerateDynamic(ForestGeneration forest, LocationChunk chunk) | Does nothing. |
private Task Alta.Forests.IForestGeneration.GenerateGlobal(ForestGeneration forest) | Does nothing. |
private async Task Alta.Forests.IForestGeneration.GenerateStatic(ForestGeneration forest, LocationChunk chunk, InstructionSet instruction) | For river features inside the chunk, picks a core from the matching pipeline and adds a RiverGCoreInstruction, seeded from forest and chunk seeds. |