quantum-space-buddies/QSB/Events/FullStateMessage.cs

25 lines
613 B
C#
Raw Normal View History

2020-08-09 09:11:45 +00:00
using UnityEngine.Networking;
namespace QSB.Events
{
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);
}
}
}