A class in Root.Township, Alta.Forests.
Forest generation step that places encounter generation cores (GCores) on paths, large clearings, crossroads and dead ends.
Constructors
| Member | What it is |
|---|
ForestEncounters() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|
private ObjectPipeline crossRoads | Cores for nodes with more than two paths. |
private ObjectPipeline deadEnds | Cores for nodes with one path. |
private EdgeType edgeType | Edge types that get path encounters. |
private float largeEncounterRadiusThreshold | Nodes larger than this get a large encounter instead. |
private ObjectPipeline largeEncounters | Cores for large nodes. |
private ObjectPipeline paths | Cores placed along edges, facing along them. |
Methods
| Member | What it is |
|---|
void Initialize() | Does nothing. |
6 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 void EditorPreview() | Context menu: spawns every encounter core in a row with labels, to preview them. |
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 instructions) | Adds GCore instructions for matching edges and for nodes by size and number of paths. Entrances and open spaces are skipped. |