1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00
openmw-tes3mp/components/openmw-mp/Master/PacketMasterAnnounce.hpp

39 lines
826 B
C++
Raw Normal View History

2017-04-23 05:36:47 +00:00
//
// 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:
explicit PacketMasterAnnounce(RakNet::RakPeerInterface *peer);
2017-04-23 05:36:47 +00:00
void Packet(RakNet::BitStream *bs, bool send) override;
2017-04-23 05:36:47 +00:00
void SetServer(QueryData *server);
void SetFunc(uint32_t keep);
2017-04-23 05:36:47 +00:00
int GetFunc();
enum Func
{
FUNCTION_DELETE = 0,
FUNCTION_ANNOUNCE,
FUNCTION_KEEP
};
private:
QueryData *server;
uint32_t func;
2017-04-23 05:36:47 +00:00
};
}
#endif //OPENMW_PACKETMASTERANNOUNCE_HPP