quantum-space-buddies/QSB/ShipSync/Messages/Hull/HullRepairTickMessage.cs

13 lines
341 B
C#
Raw Normal View History

2021-12-24 21:14:23 -08:00
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);
}
}