#ifndef OPENMW_PACKETPREINIT_HPP #define OPENMW_PACKETPREINIT_HPP #include #include "BasePacket.hpp" namespace mwmp { class PacketPreInit : public BasePacket { public: typedef std::vector HashList; typedef std::pair PluginPair; typedef std::vector PluginContainer; PacketPreInit(RakNet::RakPeerInterface *peer); virtual void Packet(RakNet::BitStream *bs, bool send); void setChecksums(PluginContainer *checksums); private: PluginContainer *checksums; const static uint32_t maxPlugins = 256; const static uint32_t pluginNameMaxLength = 256; const static uint32_t maxHashes = 16; }; } #endif //OPENMW_PACKETPREINIT_HPP