DarkflameServer/dNet/MasterPackets.h

30 lines
1.2 KiB
C
Raw Permalink Normal View History

#ifndef MASTERPACKETS_H
#define MASTERPACKETS_H
#include <cstdint>
#include <string>
#include "RakNetTypes.h"
#include "dCommonVars.h"
class dServer;
namespace MasterPackets {
2022-07-28 13:39:57 +00:00
void SendPersistentIDRequest(dServer* server, uint64_t requestID); //Called from the World server
void SendPersistentIDResponse(dServer* server, const SystemAddress& sysAddr, uint64_t requestID, uint32_t objID);
2022-07-28 13:39:57 +00:00
void SendZoneTransferRequest(dServer* server, uint64_t requestID, bool mythranShift, uint32_t zoneID, uint32_t cloneID);
void SendZoneTransferResponse(dServer* server, const SystemAddress& sysAddr, uint64_t requestID, bool mythranShift, uint32_t zoneID, uint32_t zoneInstance, uint32_t zoneClone, const std::string& serverIP, uint32_t serverPort);
2022-07-28 13:39:57 +00:00
void HandleServerInfo(Packet* packet);
void SendServerInfo(dServer* server, Packet* packet);
2022-07-28 13:39:57 +00:00
void SendZoneCreatePrivate(dServer* server, uint32_t zoneID, uint32_t cloneID, const std::string& password);
2022-07-28 13:39:57 +00:00
void SendZoneRequestPrivate(dServer* server, uint64_t requestID, bool mythranShift, const std::string& password);
void SendWorldReady(dServer* server, LWOMAPID zoneId, LWOINSTANCEID instanceId);
2022-07-28 13:39:57 +00:00
void HandleSetSessionKey(Packet* packet);
}
#endif // MASTERPACKETS_H