Skip to main content

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​

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

Fields​

2 private and internal fields
MemberWhat it is
private BiomeAttribute[] attributesThe biome attributes to average onto edges.
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat 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.