IndirectModifierSaveData
A class in Root.Township, Alta.StatSystem.
Saved state of one IndirectModifier, a stat change that plays out over a curve for a number of ticks. On load, ticks for the time passed since saving are added, and modifiers that ran out are dropped.
- Listed in Stats, effects, heat and liquid
Constructors
| Member | What it is |
|---|---|
IndirectModifierSaveData() | Creates an IndirectModifierSaveData with default values. |
Fields
| Member | What it is |
|---|---|
float baseValue | Value the curve is multiplied by. |
uint duration | Total length of the modifier in ticks. |
uint tick | Ticks already run when it was saved. |
Curve valueOverDuration | Curve of the value over the modifier's life, from 0 to 1. |
Used in
Members of other types that take, return or hold a IndirectModifierSaveData: