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

13 lines
348 B
C#
Raw Normal View History

using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
namespace QSB.ShipSync.Messages.Hull
{
2022-01-27 04:35:43 +00:00
internal class HullChangeIntegrityMessage : QSBWorldObjectMessage<QSBShipHull, float>
{
public HullChangeIntegrityMessage(float integrity) => Value = integrity;
public override void OnReceiveRemote() => WorldObject.ChangeIntegrity(Value);
}
}