quantum-space-buddies/QSB/ShipSync/Messages/Hull/HullRepairTickMessage.cs
2021-12-26 18:55:54 -08:00

13 lines
341 B
C#

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