OnFuelConsumed
Usage
- No return behavior
Example Autogenerated
csharp
private void OnFuelConsumed( BaseOven instance, Item fuel, ItemModBurnable burnable )
{
Puts( "OnFuelConsumed works!" );
}
Location
- BaseOven::ConsumeFuel(Item fuel, ItemModBurnable burnable)
csharp
//---
int fuelRate = this.GetFuelRate();
fuel.UseItem(fuelRate);
Facepunch.Rust.Analytics.Azure.AddPendingItems(this, fuel.info.shortname, fuelRate, "smelt", true, false);
fuel.fuel = burnable.fuelAmount;
fuel.MarkDirty();
Interface.CallHook("OnFuelConsumed", this, fuel, burnable);
}