mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
25 lines
567 B
C#
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);
|
|
}
|
|
}
|
|
}
|