AttributeImpact
A class in Root.Township, Alta.Populations.
Weights where a global population spawns by one biome attribute. GlobalPopulationDefinition multiplies these together per chunk.
- Listed in World generation
Constructors
| Member | What it is |
|---|---|
AttributeImpact() | Creates an AttributeImpact with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private BiomeAttribute attribute | The biome attribute read. |
private AnimationCurve impact | Curve from the attribute value to a spawn weight multiplier. |
Methods
| Member | What 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: