mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
21 lines
492 B
C#
21 lines
492 B
C#
|
using UnityEngine.Networking;
|
|||
|
|
|||
|
namespace QSB.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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|