Skip to main content

RiverEncounters

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​

MemberWhat it is
RiverEncounters()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

5 private and internal fields
MemberWhat it is
private ObjectPipeline exitsPipeline for nodes where the river ends.
private ObjectPipeline forksPipeline for nodes where more than two overground paths meet.
private ObjectPipeline openingsPipeline for nodes where the river starts (skipped if the node's static volume multiplier is above 1).
private ObjectPipeline pathsPipeline for the middle of each overground path that isn't a waterfall.
private ObjectPipeline waterfallTopsPipeline for the top of each waterfall.

Methods​

MemberWhat it is
void Initialize()Does nothing.
5 private and internal methods
MemberWhat 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.