openmw-tes3coop/components/openmw-mp/Packets/PacketPreInit.hpp
Koncord 2cb0ea20f0 [General] Modernize packets
Use explicit for constructors
Use override instead virtual for inherited methods
Mark final derived classes as "final"
2017-12-09 10:13:27 +08:00

31 lines
684 B
C++

//
// Created by koncord on 05.03.17.
//
#ifndef OPENMW_PACKETPREINIT_HPP
#define OPENMW_PACKETPREINIT_HPP
#include <vector>
#include "BasePacket.hpp"
namespace mwmp
{
class PacketPreInit final: public BasePacket
{
public:
typedef std::vector<unsigned> HashList;
typedef std::pair<std::string, HashList> PluginPair;
typedef std::vector<PluginPair> PluginContainer;
explicit PacketPreInit(RakNet::RakPeerInterface *peer);
void Packet(RakNet::BitStream *bs, bool send) override;
void setChecksums(PluginContainer *checksums);
private:
PluginContainer *checksums;
};
}
#endif //OPENMW_PACKETPREINIT_HPP