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

11 lines
354 B
C#
Raw Normal View History

2021-12-25 05:14:23 +00:00
using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
2022-03-03 03:46:33 +00:00
namespace QSB.ShipSync.Messages.Component;
internal class ComponentRepairTickMessage : QSBWorldObjectMessage<QSBShipComponent, float>
2021-12-25 05:14:23 +00:00
{
2022-03-11 01:57:50 +00:00
public ComponentRepairTickMessage(float repairFraction) : base(repairFraction) { }
2021-12-25 05:14:23 +00:00
2022-03-03 03:46:33 +00:00
public override void OnReceiveRemote() => WorldObject.RepairTick(Data);
}