1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 19:49:54 +00:00
openmw-tes3mp/components/openmw-mp/Master/PacketMasterAnnounce.hpp
Koncord 9643eb6026 [Master] Notify server about announce state
Rename structure Server to QueryData
2017-04-24 19:58:48 +08:00

38 lines
806 B
C++

//
// Created by koncord on 22.04.17.
//
#ifndef OPENMW_PACKETMASTERANNOUNCE_HPP
#define OPENMW_PACKETMASTERANNOUNCE_HPP
#include "../Packets/BasePacket.hpp"
#include "MasterData.hpp"
namespace mwmp
{
class ProxyMasterPacket;
class PacketMasterAnnounce : public BasePacket
{
friend class ProxyMasterPacket;
public:
PacketMasterAnnounce(RakNet::RakPeerInterface *peer);
virtual void Packet(RakNet::BitStream *bs, bool send);
void SetServer(QueryData *server);
void SetFunc(int keep);
int GetFunc();
enum Func
{
FUNCTION_DELETE = 0,
FUNCTION_ANNOUNCE,
FUNCTION_KEEP
};
private:
QueryData *server;
int func;
};
}
#endif //OPENMW_PACKETMASTERANNOUNCE_HPP