quantum-space-buddies/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs
2023-07-28 19:30:57 +01:00

11 lines
352 B
C#

using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
namespace QSB.ShipSync.Messages.Component;
public class ComponentRepairTickMessage : QSBWorldObjectMessage<QSBShipComponent, float>
{
public ComponentRepairTickMessage(float repairFraction) : base(repairFraction) { }
public override void OnReceiveRemote() => WorldObject.RepairTick(Data);
}