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

11 lines
352 B
C#
Raw Normal View History

2021-12-24 21:14:23 -08:00
using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
2022-03-02 19:46:33 -08:00
namespace QSB.ShipSync.Messages.Component;
2023-07-28 19:30:57 +01:00
public class ComponentRepairTickMessage : QSBWorldObjectMessage<QSBShipComponent, float>
2021-12-24 21:14:23 -08:00
{
2022-03-10 17:57:50 -08:00
public ComponentRepairTickMessage(float repairFraction) : base(repairFraction) { }
2021-12-24 21:14:23 -08:00
2022-03-02 19:46:33 -08:00
public override void OnReceiveRemote() => WorldObject.RepairTick(Data);
}