Skip to main content

Fuel

A class in Root.Township, the global namespace.

Fuel values for an item type, used by fuel-burning fires. An ItemComponent, so it is per item (and material), not per object. See Heat.

Constructors​

MemberWhat it is
Fuel()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

8 private and internal fields
MemberWhat it is
private float burnDurationSeconds this fuel burns before turning into burning or being destroyed. Each piece varies by 15 percent.
private Item burningItem this fuel turns into as it burns down (for example a burnt stage), or none.
private float burnPriorityMultiplierHow much of the fire's burn this fuel takes, relative to other fuel in the fire.
private float dockedBurnDurationSeconds per item when burnt from a fuel dock.
private float efficiencyCapFire efficiency above which this fuel's burn rate is scaled down. Also used to sort fuels.
private float efficiencyValueHow much each piece adds to the fire's efficiency.
private float parentDurationBacking field for ParentDuration.
private float volumeBacking field for Volume.

Properties​

MemberWhat it is
float BurnDuration { get; }How long the item burns in a fire's fuel area.
Item BurningItem { get; }Item the fuel turns into when its life runs out. The server swaps the object for it. Null means it is destroyed.
float BurnPriorityMultiplier { get; }Share of the fire's burn this fuel takes compared to other fuel in the area.
float DockedBurnDuration { get; }How long one item lasts in a fire's fuel dock.
float EfficiencyCap { get; }Above this fire efficiency, this fuel burns more slowly. Fuel areas sort fuel by it.
float EfficiencyValue { get; }How much heat efficiency each item adds to the fire.
float ParentDuration { get; }Extra burn life added when the fuel is loaded into a fire from a save.
float Volume { get; }Heat volume this fuel adds to the fire's heat point while it burns.

Used in​

Members of other types that take, return or hold a Fuel: