quantum-space-buddies/QSB/Player/Events/PlayerJoinMessage.cs

22 lines
520 B
C#
Raw Normal View History

2020-11-03 21:33:48 +00:00
using QSB.Messaging;
using UnityEngine.Networking;
2020-08-09 09:37:32 +02:00
2020-11-03 21:33:48 +00:00
namespace QSB.Player.Events
2020-08-09 09:37:32 +02: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);
}
}
}