mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
27 lines
606 B
C#
27 lines
606 B
C#
|
using System;
|
|||
|
using System.Linq;
|
|||
|
using QSB.Messaging;
|
|||
|
using UnityEngine.Networking;
|
|||
|
|
|||
|
namespace QSB.Events
|
|||
|
{
|
|||
|
public class EventMessage : PlayerMessage
|
|||
|
{
|
|||
|
public override MessageType MessageType => MessageType.Event;
|
|||
|
|
|||
|
public int EventType { get; set; }
|
|||
|
|
|||
|
public override void Deserialize(NetworkReader reader)
|
|||
|
{
|
|||
|
base.Deserialize(reader);
|
|||
|
EventType = reader.ReadInt32();
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(NetworkWriter writer)
|
|||
|
{
|
|||
|
base.Serialize(writer);
|
|||
|
writer.Write(EventType);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|