quantum-space-buddies/QSB/Player/Events/PlayerJoinMessage.cs
Mister_Nebula 7a4149bee6 Revert "REVERT"
This reverts commit 661c04a987.
2020-12-16 09:08:38 +00:00

22 lines
438 B
C#

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