2021-12-26 01:15:22 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QSB.ShipSync.WorldObjects;
|
2021-06-20 08:48:37 +00:00
|
|
|
|
|
2021-12-24 00:26:31 +00:00
|
|
|
|
namespace QSB.ShipSync.Messages.Hull
|
2021-06-20 08:48:37 +00:00
|
|
|
|
{
|
2022-01-27 04:35:43 +00:00
|
|
|
|
internal class HullChangeIntegrityMessage : QSBWorldObjectMessage<QSBShipHull, float>
|
2021-06-20 08:48:37 +00:00
|
|
|
|
{
|
2021-12-26 01:15:22 +00:00
|
|
|
|
public HullChangeIntegrityMessage(float integrity) => Value = integrity;
|
2021-06-20 08:48:37 +00:00
|
|
|
|
|
2021-12-26 01:15:22 +00:00
|
|
|
|
public override void OnReceiveRemote() => WorldObject.ChangeIntegrity(Value);
|
2021-06-20 08:48:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|