Added a test build
[RedVex.git] / core / GameServerPacketMarshal.h
blobdae645ef8dfe096cb1df4a6ac747fa2bc4a0e6b3
1 #pragma once
2 #include <queue>
3 #include "PacketMarshal.h"
5 class GameServerPacketMarshal :
6 public PacketMarshal
8 public:
9 GameServerPacketMarshal();
10 ~GameServerPacketMarshal();
12 int Serialize(const IPacket* packet, void* buffer, int size);
13 IPacket* Deserialize();
15 private:
16 static const int PacketSizes[];
17 static const int WorkBufferSize = 0x6000;
19 void EnqueuePackets(const void* data, int size);
20 static int GetDecompressedPacketSize(const void* data, int size);
21 static int GetChatPacketSize(const void* data, int size);
23 std::queue<IPacket*> _packets;
24 bool _magic;