Class BurnableBehaviour
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Unified fire/fuel component. Handles burning, fuel consumption, fire VFX, fire spread, damage, light flicker, crafting station attachment, and tooltip. Replaces the old FuelSystem, FuelBehaviour, and CampfireBehaviour.
public class BurnableBehaviour : MonoBehaviour
- Inheritance
-
objectBurnableBehaviour
Fields
Properties
- HasFuel
Does this object have fuel remaining?
- IsOnFire
Is this object currently on fire?
Methods
- AddFuel(float)
Add fuel to this burnable.
- Extinguish()
Extinguish the fire.
- Ignite()
Set this object on fire.
- ReceiveHeat(float)
Called when this object is in a fire zone. Handles delayed ignition.
- TryAddFuel(ItemBehaviour)
Try to add an item as fuel. Destroys the item on success.
Events
- OnActiveStateChanged
Fired when active state changes (has fuel or not). Replaces FuelSystem.OnActiveStateChanged.