mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
485698e93b
* Showing player markers * Marker above head * Use player name on marker * Sync full state on init * Sync game state on start * removed name from death and leave message Co-authored-by: Ricardo Lopes <raicuparta@gmail.com>
25 lines
597 B
C#
25 lines
597 B
C#
using QSB.Messaging;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Events
|
|
{
|
|
public class DeathMessage : PlayerMessage
|
|
{
|
|
public override MessageType MessageType => MessageType.Death;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|