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.
- Listed in Global namespace: E to H
- Inherits or implements
ItemComponent - Derived types
FuelComparer - Documented in Heat
Constructors
| Member | What it is |
|---|---|
Fuel() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private float burnDuration | Seconds this fuel burns before turning into burning or being destroyed. Each piece varies by 15 percent. |
private Item burning | Item this fuel turns into as it burns down (for example a burnt stage), or none. |
private float burnPriorityMultiplier | How much of the fire's burn this fuel takes, relative to other fuel in the fire. |
private float dockedBurnDuration | Seconds per item when burnt from a fuel dock. |
private float efficiencyCap | Fire efficiency above which this fuel's burn rate is scaled down. Also used to sort fuels. |
private float efficiencyValue | How much each piece adds to the fire's efficiency. |
private float parentDuration | Backing field for ParentDuration. |
private float volume | Backing field for Volume. |
Properties
| Member | What 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: