openmw-tes3coop/components/openmw-mp/Master/PacketMasterAnnounce.hpp

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