mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +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);
|
|||
|
}
|
|||
|
}
|