Table of Contents

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
object
BurnableBehaviour

Fields

AttachmentPoint
BurnRate
CanBeIgnited
CanSpreadFire
CurrentFuel
DamagePerSecond
DamageRadius
FireLightFlicker
FireSpawnOffset
FireSpreadCheckInterval
FireVFXPrefab
FuelType
IgnitionDelay
Interactive
MaxFuel
ScaleVFXWithFuel
SpreadRadius
StartsOnFire

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.

GetAvailableFuel()
GetFuelPercentage()
HasAnyFuel()
HasEnoughFuel(float)
Ignite()

Set this object on fire.

ReceiveHeat(float)

Called when this object is in a fire zone. Handles delayed ignition.

ResetIgnitionProgress()
TryAddFuel(ItemBehaviour)

Try to add an item as fuel. Destroys the item on success.

TryTransferFuel(BurnableBehaviour, float)

Events

OnActiveStateChanged

Fired when active state changes (has fuel or not). Replaces FuelSystem.OnActiveStateChanged.

OnExtinguished
OnFuelDepleted
OnIgnited