quantum-space-buddies/QSB/TimeSync/Events/ServerTimeMessage.cs
Mister_Nebula 7a4149bee6 Revert "REVERT"
This reverts commit 661c04a98784a50011cfdaafc62e424095399678.
2020-12-16 09:08:38 +00:00

25 lines
539 B
C#

using QSB.Messaging;
using QuantumUNET.Transport;
namespace QSB.TimeSync.Events
{
public class ServerTimeMessage : PlayerMessage
{
public float ServerTime { get; set; }
public int LoopCount { get; set; }
public override void Deserialize(QSBNetworkReader reader)
{
base.Deserialize(reader);
ServerTime = reader.ReadSingle();
LoopCount = reader.ReadInt16();
}
public override void Serialize(QSBNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(ServerTime);
writer.Write(LoopCount);
}
}
}