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.
39 lines
826 B
C++
39 lines
826 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:
|
|
explicit PacketMasterAnnounce(RakNet::RakPeerInterface *peer);
|
|
|
|
void Packet(RakNet::BitStream *bs, bool send) override;
|
|
|
|
void SetServer(QueryData *server);
|
|
void SetFunc(uint32_t keep);
|
|
int GetFunc();
|
|
|
|
enum Func
|
|
{
|
|
FUNCTION_DELETE = 0,
|
|
FUNCTION_ANNOUNCE,
|
|
FUNCTION_KEEP
|
|
};
|
|
private:
|
|
QueryData *server;
|
|
uint32_t func;
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PACKETMASTERANNOUNCE_HPP
|