Skip to main content

AttributeImpact

A class in Root.Township, Alta.Populations.

Weights where a global population spawns by one biome attribute. GlobalPopulationDefinition multiplies these together per chunk.

Constructors​

MemberWhat it is
AttributeImpact()Creates an AttributeImpact with default values.

Fields​

2 private and internal fields
MemberWhat it is
private BiomeAttribute attributeThe biome attribute read.
private AnimationCurve impactCurve from the attribute value to a spawn weight multiplier.

Methods​

MemberWhat it is
float GetImpact(AttributeSet attributes)Reads the attribute from a biome's attribute set and returns the curve's value for it.

Used in​

Members of other types that take, return or hold a AttributeImpact: