quantum-space-buddies/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs
2021-12-24 21:14:23 -08:00

15 lines
404 B
C#

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