quantum-space-buddies/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairTickMessage.cs
2021-12-24 21:14:23 -08:00

15 lines
416 B
C#

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