mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
7a4149bee6
This reverts commit 661c04a98784a50011cfdaafc62e424095399678.
25 lines
539 B
C#
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);
|
|
}
|
|
}
|
|
} |