mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
25 lines
616 B
C#
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);
|
|
}
|
|
}
|
|
}
|