quantum-space-buddies/QSB/TimeSync/WakeUpMessage.cs
2020-08-09 11:11:45 +02:00

24 lines
558 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.TimeSync
{
public class WakeUpMessage : QSBMessage
{
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);
}
}
}