1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:19:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/PacketPreInit.hpp
David Cernat ed9a85f13b [General] Increase maxPlugins to 1000
This allows clients to have 1000 data files instead of 256 as before.

Also increase maxHashes to 50
2022-02-12 00:12:22 +02:00

30 lines
789 B
C++

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