quantum-space-buddies/QSB/Player/Events/PlayerJoinMessage.cs
Mister_Nebula 3249ce33af cleanup...
2020-11-03 21:33:48 +00:00

22 lines
520 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.Player.Events
{
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);
}
}
}