Skip to content

OnWaterPurified

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnWaterPurified( WaterPurifier instance, float timeCooked )
{
    Puts( "OnWaterPurified works!" );
}

Location

  • WaterPurifier::ConvertWater(float timeCooked)
csharp
//---
		{
			slot3.amount += num3;
			slot3.amount = Mathf.Clamp(slot3.amount, 0, this.waterStorage.maxStackSize);
			this.waterStorage.inventory.MarkDirty();
		}
		Interface.CallHook("OnWaterPurified", this, timeCooked);
		this.waterStorage.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
	}
}

Released under the MIT License.