quantum-space-buddies/QSB/ShipSync/Events/Hull/HullChangeIntegrityMessage.cs
2021-06-20 10:08:36 +01:00

23 lines
459 B
C#

using QSB.WorldSync.Events;
using QuantumUNET.Transport;
namespace QSB.ShipSync.Events.Hull
{
public class HullChangeIntegrityMessage : WorldObjectMessage
{
public float Integrity { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
Integrity = reader.ReadSingle();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(Integrity);
}
}
}