mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
18a520bc78
* cleanup
25 lines
573 B
C#
25 lines
573 B
C#
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);
|
|
}
|
|
}
|
|
}
|