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

13 lines
363 B
C#
Raw Normal View History

2021-12-25 05:14:23 +00:00
using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
namespace QSB.ShipSync.Messages.Component
{
2022-01-27 04:35:43 +00:00
internal class ComponentRepairTickMessage : QSBWorldObjectMessage<QSBShipComponent, float>
2021-12-25 05:14:23 +00:00
{
public ComponentRepairTickMessage(float repairFraction) => Value = repairFraction;
public override void OnReceiveRemote() => WorldObject.RepairTick(Value);
}
}