Skip to main content

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.

Constructors​

MemberWhat it is
FuelConsumptionState()Creates a Fire.FuelConsumptionState with default values.

Fields​

MemberWhat it is
SortedList<Fuel> fuelListThe fuel types present, sorted by the fuel comparer.
Dictionary<Item, Fuel> fuelsFuel data for each item type present.
static Stack<Fire.FuelConsumptionState> poolShared pool of spare states.
Dictionary<Pickup, float> remainingLifeFuel life left in each pickup; the pickup is used up when it runs out.
Dictionary<Item, HashSet<Pickup>> trackedThe fuel pickups in the fire, grouped by item.

Methods​

MemberWhat 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: