mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
25 lines
544 B
C#
25 lines
544 B
C#
using QSB.Messaging;
|
|
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.DeathSync.Events
|
|
{
|
|
public class PlayerDeathMessage : EnumMessage<DeathType>
|
|
{
|
|
public int NecronomiconIndex { get; set; }
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
EnumValue = (DeathType)reader.ReadInt32();
|
|
NecronomiconIndex = reader.ReadInt32();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write((int)EnumValue);
|
|
writer.Write(NecronomiconIndex);
|
|
}
|
|
}
|
|
}
|