quantum-space-buddies/QSB/ShipSync/Messages/Hull/HullChangeIntegrityMessage.cs

12 lines
347 B
C#

using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
namespace QSB.ShipSync.Messages.Hull
{
internal class HullChangeIntegrityMessage : QSBWorldObjectMessage<QSBShipHull, float>
{
public HullChangeIntegrityMessage(float integrity) => Value = integrity;
public override void OnReceiveRemote() => WorldObject.ChangeIntegrity(Value);
}
}