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

11 lines
306 B
C#
Raw Normal View History

2020-12-07 21:19:16 +00:00
namespace QuantumUNET.Messages
2020-12-04 09:23:27 +00:00
{
public class QSBErrorMessage : QSBMessageBase
{
2020-12-14 22:07:21 +00:00
public int errorCode;
2020-12-04 09:23:27 +00:00
2020-12-14 21:58:00 +00:00
public override void Serialize(QSBNetworkWriter writer) => writer.Write((ushort)errorCode);
2020-12-04 09:23:27 +00:00
2020-12-14 22:07:21 +00:00
public override void Deserialize(QSBNetworkReader reader) => errorCode = reader.ReadUInt16();
2020-12-04 09:23:27 +00:00
}
2020-12-04 09:29:23 +00:00
}