ProgressStatChangeHook.TopicProgress
A private struct in Root.Township, Alta.Intelligence. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Tracks one agent's stat change over time for a ProgressStatChangeHook, adding the curve's value to the stat's base each frame.
- Listed in Creatures and AI
- Nested in
ProgressStatChangeHook
Constructors
| Member | What it is |
|---|---|
TopicProgress(float inverseDuration, ProgressStatChangeHook hook, IAgent topic) | Creates a ProgressStatChangeHook.TopicProgress from inverseDuration, hook and topic. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private Stat affectedStat | The agent's stat being changed. |
private float currentlyAdded | Total amount added to the stat so far. |
private ProgressStatChangeHook hook | The hook that owns this progress and supplies the curve. |
private float inverseDuration | Time scale for the curve: one over the action duration when time is normalized, else 1. |
private float startTime | Real time the progress started. |
private IUnityUpdateMethod updateStat | Handle for the registered update method. |
Methods
| Member | What it is |
|---|---|
void Dispose(bool removeOnEnd) | Stops the update and, if asked, takes back everything it added. |
1 private and internal method
Used in
Members of other types that take, return or hold a TopicProgress: