quantum-space-buddies/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs

15 lines
404 B
C#
Raw Normal View History

2021-12-25 05:14:23 +00:00
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);
}
}