quantum-space-buddies/QSB/QuantumUNET/QSBErrorMessage.cs

24 lines
450 B
C#
Raw Normal View History

2020-12-04 09:23:27 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine.Networking;
namespace QSB.QuantumUNET
{
public class QSBErrorMessage : QSBMessageBase
{
public override void Deserialize(QSBNetworkReader reader)
{
this.errorCode = (int)reader.ReadUInt16();
}
public override void Serialize(QSBNetworkWriter writer)
{
writer.Write((ushort)this.errorCode);
}
public int errorCode;
}
}