2017-03-05 08:46:11 +00:00
|
|
|
#ifndef OPENMW_PACKETPREINIT_HPP
|
|
|
|
#define OPENMW_PACKETPREINIT_HPP
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "BasePacket.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class PacketPreInit : public BasePacket
|
|
|
|
{
|
|
|
|
public:
|
2018-07-02 18:21:36 +00:00
|
|
|
typedef std::vector<uint32_t> HashList;
|
2017-05-02 15:31:30 +00:00
|
|
|
typedef std::pair<std::string, HashList> PluginPair;
|
2017-03-05 08:46:11 +00:00
|
|
|
typedef std::vector<PluginPair> PluginContainer;
|
|
|
|
|
|
|
|
PacketPreInit(RakNet::RakPeerInterface *peer);
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
virtual void Packet(RakNet::BitStream *newBitstream, bool send);
|
2017-03-06 10:40:53 +00:00
|
|
|
void setChecksums(PluginContainer *checksums);
|
|
|
|
private:
|
|
|
|
PluginContainer *checksums;
|
2018-07-02 18:21:36 +00:00
|
|
|
const static uint32_t maxPlugins = 256;
|
|
|
|
const static uint32_t pluginNameMaxLength = 256;
|
|
|
|
const static uint32_t maxHashes = 16;
|
2017-03-05 08:46:11 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PACKETPREINIT_HPP
|