2017-04-23 05:36:47 +00:00
|
|
|
#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:
|
2018-07-02 15:28:25 +00:00
|
|
|
explicit PacketMasterUpdate(RakNet::RakPeerInterface *peer);
|
2017-04-23 05:36:47 +00:00
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void Packet(RakNet::BitStream *newBitstream, bool send) override;
|
2017-04-23 05:36:47 +00:00
|
|
|
|
2017-04-24 11:58:48 +00:00
|
|
|
void SetServer(std::pair<RakNet::SystemAddress, QueryData> *serverPair);
|
2017-04-23 05:36:47 +00:00
|
|
|
private:
|
2017-04-24 11:58:48 +00:00
|
|
|
std::pair<RakNet::SystemAddress, QueryData> *server;
|
2017-04-23 05:36:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PACKETMASTERUPDATE_HPP
|