mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 03:28:26 +00:00
15 lines
404 B
C#
15 lines
404 B
C#
using QSB.Messaging;
|
|
using QSB.ShipSync.WorldObjects;
|
|
|
|
namespace QSB.ShipSync.Messages.Component
|
|
{
|
|
internal class ComponentRepairTickMessage : QSBFloatWorldObjectMessage<QSBShipComponent>
|
|
{
|
|
public ComponentRepairTickMessage(float repairFraction) => Value = repairFraction;
|
|
|
|
public ComponentRepairTickMessage() { }
|
|
|
|
public override void OnReceiveRemote() => WorldObject.RepairTick(Value);
|
|
}
|
|
}
|