quantum-space-buddies/QSB/DeathSync/Events/PlayerDeathMessage.cs
2021-03-07 22:55:56 +00:00

26 lines
578 B
C#

using QSB.Messaging;
using QuantumUNET.Transport;
namespace QSB.DeathSync.Events
{
public class PlayerDeathMessage : PlayerMessage
{
public DeathType DeathType { get; set; }
public int NecronomiconIndex { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
DeathType = (DeathType)reader.ReadInt32();
NecronomiconIndex = reader.ReadInt32();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write((int)DeathType);
writer.Write(NecronomiconIndex);
}
}
}