quantum-space-buddies/QSB/Messaging/FullStateMessage.cs
Mister_Nebula 1a67ab69c0 fixes
2020-08-09 12:40:35 +01:00

25 lines
616 B
C#

using UnityEngine.Networking;
namespace QSB.Messaging
{
public class FullStateMessage : PlayerMessage
{
public string PlayerName { get; set; }
public bool IsReady { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
PlayerName = reader.ReadString();
IsReady = reader.ReadBoolean();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(PlayerName);
writer.Write(IsReady);
}
}
}