You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/components/openmw-mp/Master/PacketMasterUpdate.hpp

29 lines
675 B
C++

//
// Created by koncord on 22.04.17.
//
#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 *bs, bool send) override;
void SetServer(std::pair<RakNet::SystemAddress, QueryData> *serverPair);
private:
std::pair<RakNet::SystemAddress, QueryData> *server;
};
}
#endif //OPENMW_PACKETMASTERUPDATE_HPP