quantum-space-buddies/QSB/Events/DeathMessage.cs
2020-03-06 19:03:35 +01:00

25 lines
567 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.Events
{
public class DeathMessage : NameMessage
{
public override MessageType MessageType => MessageType.Death;
public short DeathId { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
DeathId = reader.ReadInt16();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(DeathId);
}
}
}