quantum-space-buddies/QSB/Messaging/PlayerDeathMessage.cs
Mister_Nebula 90e7a662b0 more stuff
2020-08-09 12:38:35 +01:00

22 lines
514 B
C#

using UnityEngine.Networking;
namespace QSB.Messaging
{
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);
}
}
}