quantum-space-buddies/QSB/Player/Events/PlayerJoinMessage.cs
2021-03-09 16:43:41 +00:00

25 lines
541 B
C#

using QSB.Messaging;
using QuantumUNET.Transport;
namespace QSB.Player.Events
{
public class PlayerJoinMessage : PlayerMessage
{
public string PlayerName { get; set; }
public string QSBVersion { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
PlayerName = reader.ReadString();
QSBVersion = reader.ReadString();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(PlayerName);
writer.Write(QSBVersion);
}
}
}