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

22 lines
438 B
C#
Raw Normal View History

2020-11-03 21:33:48 +00:00
using QSB.Messaging;
using QuantumUNET.Transport;
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
{
2020-12-02 21:23:01 +00:00
public class PlayerJoinMessage : PlayerMessage
{
public string PlayerName { get; set; }
2020-08-09 09:37:32 +02:00
2020-12-04 09:23:27 +00:00
public override void Deserialize(QSBNetworkReader reader)
2020-12-02 21:23:01 +00:00
{
base.Deserialize(reader);
PlayerName = reader.ReadString();
}
2020-08-09 09:37:32 +02:00
2020-12-04 09:23:27 +00:00
public override void Serialize(QSBNetworkWriter writer)
2020-12-02 21:23:01 +00:00
{
base.Serialize(writer);
writer.Write(PlayerName);
}
}
2020-08-09 09:37:32 +02:00
}