quantum-space-buddies/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairTickMessage.cs

11 lines
363 B
C#
Raw Normal View History

2021-12-24 21:14:23 -08:00
using QSB.Messaging;
using QSB.ZeroGCaveSync.WorldObjects;
namespace QSB.ZeroGCaveSync.Messages;
internal class SatelliteNodeRepairTickMessage : QSBWorldObjectMessage<QSBSatelliteNode, float>
2021-12-24 21:14:23 -08:00
{
public SatelliteNodeRepairTickMessage(float repairFraction) => Value = repairFraction;
2021-12-24 21:14:23 -08:00
public override void OnReceiveRemote() => WorldObject.RepairTick(Value);
}