Fire.FuelConsumptionState
A private class in Root.Township, Alta.Heat. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Pooled working state for a fuel-based fire: which fuel pickups are in it, grouped by item, and how much life each has left.
- Listed in Stats, effects, heat and liquid
- Nested in
Fire
Constructors
| Member | What it is |
|---|---|
FuelConsumptionState() | Creates a Fire.FuelConsumptionState with default values. |
Fields
| Member | What it is |
|---|---|
SortedList<Fuel> fuelList | The fuel types present, sorted by the fuel comparer. |
Dictionary<Item, Fuel> fuels | Fuel data for each item type present. |
static Stack<Fire.FuelConsumptionState> pool | Shared pool of spare states. |
Dictionary<Pickup, float> remainingLife | Fuel life left in each pickup; the pickup is used up when it runs out. |
Dictionary<Item, HashSet<Pickup>> tracked | The fuel pickups in the fire, grouped by item. |
Methods
| Member | What it is |
|---|---|
static Fire.FuelConsumptionState Get() | Takes a state from the pool or makes a new one. |
static void Release(ref Fire.FuelConsumptionState state) | Clears a state, returns it to the pool and nulls the reference. |
Used in
Members of other types that take, return or hold a FuelConsumptionState: