2017-03-05 08:46:11 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 05.03.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PACKETPREINIT_HPP
|
|
|
|
#define OPENMW_PACKETPREINIT_HPP
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "BasePacket.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class PacketPreInit : public BasePacket
|
|
|
|
{
|
|
|
|
public:
|
2017-05-02 15:31:30 +00:00
|
|
|
typedef std::vector<unsigned> HashList;
|
|
|
|
typedef std::pair<std::string, HashList> PluginPair;
|
2017-03-05 08:46:11 +00:00
|
|
|
typedef std::vector<PluginPair> PluginContainer;
|
|
|
|
|
|
|
|
PacketPreInit(RakNet::RakPeerInterface *peer);
|
|
|
|
|
2017-03-06 10:40:53 +00:00
|
|
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
|
|
|
void setChecksums(PluginContainer *checksums);
|
|
|
|
private:
|
|
|
|
PluginContainer *checksums;
|
2017-03-05 08:46:11 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PACKETPREINIT_HPP
|