HeatManager.HeatPointDamageLevel
A private class in Root.Township, Alta.Heat. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Tracks one heat point's burn level for HeatManager: -1 below the hot temperature, 0 when hot, 1 at or above ignition.
Constructors
Fields
| Member | What it is |
|---|
Action<int> ChangedLevel | Called with the new level whenever it changes. |
1 private and internal field
| Member | What it is |
|---|
private float[] burnLevels | The hot and ignition temperatures, in that order. |
Properties
| Member | What it is |
|---|
bool IncreasedTemperature { get; set; } | Set when the temperature rises. HeatManager clears it after counting it for burn damage. |
int Level { get; private set; } | The current burn level, from -1 to 1. |
float Temperature { get; private set; } | The heat point's last known temperature. |
Methods
1 private and internal method
| Member | What it is |
|---|
private void UpdateTemperature(HeatPoint point) | Runs when the heat point changes. Updates the temperature and level. |
Used in
Members of other types that take, return or hold a HeatPointDamageLevel: