quantum-space-buddies/QSB/Messaging/ServerTimeMessage.cs
Mister_Nebula b8067adbeb cleanup
2020-08-10 12:16:07 +01:00

23 lines
545 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)
{
ServerTime = reader.ReadSingle();
LoopCount = reader.ReadInt16();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(ServerTime);
writer.Write(LoopCount);
}
}
}