Skip to main content

AttributeUsage

A class in Root.Township, the global namespace.

A float value made from a base value scaled by attribute curves, such as biome attributes in world generation.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float baseValueThe starting value before multipliers. Defaults to 1.
private AttributeCurveRange[] multipliersCurves that each scale the value by one attribute.

Methods​

MemberWhat it is
float GetValue(AttributeSet attributes = null)Returns baseValue times each multiplier curve evaluated at its attribute. With no attribute set, returns baseValue.

Used in​

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