quantum-space-buddies/QSB/DeathSync/PlayerDeathMessage.cs
2020-08-13 21:46:16 +02:00

23 lines
535 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.DeathSync
{
public class PlayerDeathMessage : 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);
}
}
}