ForestPathAttributeLerper
A class in Root.Township, Alta.Forests.
A node map step in forest generation that gives each edge the average of its two nodes' values for chosen biome attributes.
Constructors
| Member | What it is |
|---|
ForestPathAttributeLerper() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private BiomeAttribute[] attributes | The biome attributes to average onto edges. |
private static Logger logger | NLog logger for this class. |
Methods
| Member | What it is |
|---|
override void Modify(ForestGeneration forest) | For every edge, sets each listed attribute it doesn't already have to the average of its end nodes' values. |