quantum-space-buddies/QSB/Events/DeathMessage.cs
2020-08-09 11:11:45 +02:00

22 lines
505 B
C#

using UnityEngine.Networking;
namespace QSB.Events
{
public class DeathMessage : PlayerMessage
{
public DeathType DeathType { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
DeathType = (DeathType)reader.ReadInt16();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write((short)DeathType);
}
}
}