mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-28 14:53:55 +00:00
23 lines
499 B
C#
23 lines
499 B
C#
|
using QSB.Messaging;
|
|||
|
using UnityEngine.Networking;
|
|||
|
|
|||
|
namespace QSB.Events
|
|||
|
{
|
|||
|
public class JoinEvent : QSBMessage
|
|||
|
{
|
|||
|
public override MessageType MessageType => MessageType.Join;
|
|||
|
|
|||
|
public string PlayerName { get; set; }
|
|||
|
|
|||
|
public override void Deserialize(NetworkReader reader)
|
|||
|
{
|
|||
|
PlayerName = reader.ReadString();
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(NetworkWriter writer)
|
|||
|
{
|
|||
|
writer.Write(PlayerName);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|