using NitroxClient.Communication.Abstract; using NitroxClient.Communication.Packets.Processors.Abstract; using NitroxClient.MonoBehaviours; using NitroxClient.Unity.Helper; using NitroxModel.Packets; using UnityEngine; namespace NitroxClient.Communication.Packets.Processors { public class FireDousedProcessor : ClientPacketProcessor { private readonly IPacketSender packetSender; public FireDousedProcessor(IPacketSender packetSender) { this.packetSender = packetSender; } /// /// Finds and executes . If the fire is extinguished, it will pass a large float to trigger the private /// method. /// public override void Process(FireDoused packet) { GameObject fireGameObject = NitroxEntity.RequireObjectFrom(packet.Id); using (PacketSuppressor.Suppress()) { fireGameObject.RequireComponent().Douse(packet.DouseAmount); } } } }