1
0
mirror of synced 2024-11-24 06:20:12 +01:00
GC-local-server-rewrite/GCRelayServer/RelayPacket.cs

57 lines
1.2 KiB
C#
Raw Normal View History

2022-08-01 15:39:24 +02:00
using BinarySerialization;
namespace GCRelayServer;
public class RelayPacket
{
[FieldOrder(0)]
[FieldEndianness(Endianness.Big)]
public ushort Magic;
[FieldOrder(1)]
[FieldEndianness(Endianness.Big)]
public ushort RemainingSize;
[FieldOrder(2)]
[FieldEndianness(Endianness.Big)]
public ushort RequestMainType;
[FieldOrder(3)]
[FieldCount(6)]
public byte[] Unknown0 = Array.Empty<byte>();
[FieldOrder(4)]
[FieldEndianness(Endianness.Big)]
public ushort RequestSubType;
[FieldOrder(5)]
[FieldEndianness(Endianness.Big)]
public ushort Unknown1;
[FieldOrder(6)]
[FieldEndianness(Endianness.Big)]
public ushort DataSize;
[FieldOrder(7)]
[FieldEndianness(Endianness.Big)]
public ushort Unknown2;
[FieldOrder(8)]
[FieldEndianness(Endianness.Big)]
public uint MatchingId;
[FieldOrder(9)]
[FieldEndianness(Endianness.Big)]
public uint EntryNo;
[FieldOrder(10)]
[FieldEndianness(Endianness.Big)]
public uint MachineId;
[FieldOrder(11)]
[FieldEndianness(Endianness.Big)]
public uint Unknown3;
[FieldOrder(12)]
public byte[] Data = Array.Empty<byte>();
}