quantum-space-buddies/QSB/ShipSync/Events/RepairTickMessage.cs

23 lines
456 B
C#
Raw Normal View History

2021-06-20 09:17:32 +00:00
using QSB.WorldSync.Events;
using QuantumUNET.Transport;
namespace QSB.ShipSync.Events
{
2021-07-12 21:02:50 +00:00
internal class RepairTickMessage : WorldObjectMessage
2021-06-20 09:17:32 +00:00
{
public float RepairNumber { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
RepairNumber = reader.ReadSingle();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(RepairNumber);
}
}
}