mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
43 lines
882 B
C++
43 lines
882 B
C++
#ifndef _LobbyPacketContainer_H_
|
|
#define _LobbyPacketContainer_H_
|
|
|
|
#include <vector>
|
|
#include <string.h>
|
|
|
|
#include <common/Network/CommonNetwork.h>
|
|
#include <common/Util/Util.h>
|
|
|
|
#include "Forwards.h"
|
|
|
|
namespace Core {
|
|
namespace Network {
|
|
namespace Packets {
|
|
class GamePacket;
|
|
|
|
class LobbyPacketContainer
|
|
{
|
|
public:
|
|
LobbyPacketContainer( uint8_t* encKey = nullptr );
|
|
~LobbyPacketContainer();
|
|
|
|
void addPacket( GamePacketPtr pEntry );
|
|
|
|
uint16_t getSize() const;
|
|
|
|
uint8_t* getRawData( bool addstuff = true );
|
|
|
|
private:
|
|
Core::Network::Packets::FFXIVARR_PACKET_HEADER m_header;
|
|
|
|
uint8_t * m_encKey;
|
|
|
|
std::vector<GamePacket> m_entryList;
|
|
|
|
uint8_t m_dataBuf[0x2000];
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
#endif
|