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

11 lines
338 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;
internal class HullChangeIntegrityMessage : QSBWorldObjectMessage<QSBShipHull, float>
{
2022-03-03 03:46:33 +00:00
public HullChangeIntegrityMessage(float integrity) => Data = integrity;
2022-03-03 03:46:33 +00:00
public override void OnReceiveRemote() => WorldObject.ChangeIntegrity(Data);
}