quantum-space-buddies/QSB/Messaging/ServerTimeMessage.cs
2020-08-10 18:17:54 +02:00

25 lines
619 B
C#

using UnityEngine.Networking;
namespace QSB.Messaging
{
public class ServerTimeMessage : PlayerMessage
{
public float ServerTime { get; set; }
public int LoopCount { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
ServerTime = reader.ReadSingle();
LoopCount = reader.ReadInt16();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(ServerTime);
writer.Write(LoopCount);
}
}
}