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

11 lines
337 B
C#
Raw Normal View History

using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
2022-03-03 03:46:33 +00:00
namespace QSB.ShipSync.Messages.Hull;
2023-07-28 18:30:57 +00:00
public class HullChangeIntegrityMessage : QSBWorldObjectMessage<QSBShipHull, float>
{
2022-03-11 01:57:50 +00:00
public HullChangeIntegrityMessage(float integrity) : base(integrity) { }
2022-03-03 03:46:33 +00:00
public override void OnReceiveRemote() => WorldObject.ChangeIntegrity(Data);
}