AmazingAlek 26a435ac61
Alek/death message (#56)
* storing names
* death messages
2020-03-06 05:16:41 +01:00

26 lines
624 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.Events
{
public class JoinMessage : QSBMessage
{
public override MessageType MessageType => MessageType.Join;
public uint SenderId { get; set; }
public string PlayerName { get; set; }
public override void Deserialize(NetworkReader reader)
{
PlayerName = reader.ReadString();
SenderId = reader.ReadUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(PlayerName);
writer.Write(SenderId);
}
}
}