mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
24 lines
566 B
C#
24 lines
566 B
C#
using QSB.Messaging;
|
|
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);
|
|
}
|
|
|
|
}
|
|
} |