2020-07-28 15:59:24 +02:00
|
|
|
|
using QSB.Messaging;
|
2020-05-19 19:31:54 +02:00
|
|
|
|
using UnityEngine.Networking;
|
|
|
|
|
|
|
|
|
|
namespace QSB.Events
|
|
|
|
|
{
|
2020-05-19 20:05:15 +02:00
|
|
|
|
public class FullStateMessage : PlayerMessage
|
2020-05-19 19:31:54 +02:00
|
|
|
|
{
|
|
|
|
|
public override MessageType MessageType => MessageType.FullState;
|
|
|
|
|
|
2020-07-28 00:13:43 +01:00
|
|
|
|
public string PlayerName { get; set; }
|
2020-05-19 19:31:54 +02:00
|
|
|
|
|
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
2020-07-28 00:13:43 +01:00
|
|
|
|
PlayerName = reader.ReadString();
|
2020-05-19 19:31:54 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
2020-07-28 00:13:43 +01:00
|
|
|
|
writer.Write(PlayerName);
|
2020-05-19 19:31:54 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|