quantum-space-buddies/QSB/Messaging/PlayerJoinMessage.cs

21 lines
495 B
C#
Raw Normal View History

2020-08-09 07:37:32 +00:00
using UnityEngine.Networking;
2020-08-09 11:38:35 +00:00
namespace QSB.Messaging
2020-08-09 07:37:32 +00:00
{
public class PlayerJoinMessage : PlayerMessage
{
public string PlayerName { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
PlayerName = reader.ReadString();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(PlayerName);
}
}
}