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.
- Listed in Global namespace: A to B
Constructors
| Member | What it is |
|---|---|
AttributeUsage() | Creates an AttributeUsage with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private float baseValue | The starting value before multipliers. Defaults to 1. |
private AttributeCurveRange[] multipliers | Curves that each scale the value by one attribute. |
Methods
| Member | What 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: