2021-12-25 17:15:22 -08:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QSB.ShipSync.WorldObjects;
|
2021-06-20 09:48:37 +01:00
|
|
|
|
|
2021-12-23 16:26:31 -08:00
|
|
|
|
namespace QSB.ShipSync.Messages.Hull
|
2021-06-20 09:48:37 +01:00
|
|
|
|
{
|
2021-12-25 17:15:22 -08:00
|
|
|
|
internal class HullChangeIntegrityMessage : QSBFloatWorldObjectMessage<QSBShipHull>
|
2021-06-20 09:48:37 +01:00
|
|
|
|
{
|
2021-12-25 17:15:22 -08:00
|
|
|
|
public HullChangeIntegrityMessage(float integrity) => Value = integrity;
|
2021-06-20 09:48:37 +01:00
|
|
|
|
|
2021-12-25 17:15:22 -08:00
|
|
|
|
public override void OnReceiveRemote() => WorldObject.ChangeIntegrity(Value);
|
2021-06-20 09:48:37 +01:00
|
|
|
|
}
|
|
|
|
|
}
|