1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 17:49:55 +00:00
openmw-tes3mp/components/openmw-mp/Master/PacketMasterUpdate.hpp

24 lines
643 B
C++

#ifndef OPENMW_PACKETMASTERUPDATE_HPP
#define OPENMW_PACKETMASTERUPDATE_HPP
#include "../Packets/BasePacket.hpp"
#include "MasterData.hpp"
namespace mwmp
{
class ProxyMasterPacket;
class PacketMasterUpdate : public BasePacket
{
friend class ProxyMasterPacket;
public:
explicit PacketMasterUpdate(RakNet::RakPeerInterface *peer);
void Packet(RakNet::BitStream *newBitstream, bool send) override;
void SetServer(std::pair<RakNet::SystemAddress, QueryData> *serverPair);
private:
std::pair<RakNet::SystemAddress, QueryData> *server;
};
}
#endif //OPENMW_PACKETMASTERUPDATE_HPP