2021-12-05 17:54:36 +00:00
|
|
|
#ifndef WORLDPACKETS_H
|
|
|
|
#define WORLDPACKETS_H
|
|
|
|
|
|
|
|
#include "dCommonVars.h"
|
2024-01-07 07:05:57 +00:00
|
|
|
#include <vector>
|
2021-12-05 17:54:36 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class User;
|
|
|
|
struct SystemAddress;
|
2023-03-24 23:16:45 +00:00
|
|
|
enum class eGameMasterLevel : uint8_t;
|
2023-05-02 22:39:21 +00:00
|
|
|
enum class eCharacterCreationResponse : uint8_t;
|
|
|
|
enum class eRenameResponse : uint8_t;
|
2024-04-18 02:47:28 +00:00
|
|
|
namespace RakNet {
|
|
|
|
class BitStream;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct HTTPMonitorInfo {
|
|
|
|
uint16_t port = 80;
|
|
|
|
bool openWeb = false;
|
|
|
|
bool supportsSum = false;
|
|
|
|
bool supportsDetail = false;
|
|
|
|
bool supportsWho = false;
|
|
|
|
bool supportsObjects = false;
|
|
|
|
void Serialize(RakNet::BitStream &bitstream) const;
|
|
|
|
};
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
namespace WorldPackets {
|
2024-01-07 07:05:57 +00:00
|
|
|
void SendLoadStaticZone(const SystemAddress& sysAddr, float x, float y, float z, uint32_t checksum, LWOZONEID zone);
|
2023-05-02 22:39:21 +00:00
|
|
|
void SendCharacterCreationResponse(const SystemAddress& sysAddr, eCharacterCreationResponse response);
|
2021-12-05 17:54:36 +00:00
|
|
|
void SendCharacterRenameResponse(const SystemAddress& sysAddr, eRenameResponse response);
|
2022-07-28 13:39:57 +00:00
|
|
|
void SendCharacterDeleteResponse(const SystemAddress& sysAddr, bool response);
|
2021-12-05 17:54:36 +00:00
|
|
|
void SendTransferToWorld(const SystemAddress& sysAddr, const std::string& serverIP, uint32_t serverPort, bool mythranShift);
|
|
|
|
void SendServerState(const SystemAddress& sysAddr);
|
2024-01-07 07:05:57 +00:00
|
|
|
void SendCreateCharacter(const SystemAddress& sysAddr, int64_t reputation, LWOOBJID player, const std::string& xmlData, const std::u16string& username, eGameMasterLevel gm);
|
2022-07-18 09:01:43 +00:00
|
|
|
void SendChatModerationResponse(const SystemAddress& sysAddr, bool requestAccepted, uint32_t requestID, const std::string& receiver, std::vector<std::pair<uint8_t, uint8_t>> unacceptedItems);
|
2023-03-24 23:16:45 +00:00
|
|
|
void SendGMLevelChange(const SystemAddress& sysAddr, bool success, eGameMasterLevel highestLevel, eGameMasterLevel prevLevel, eGameMasterLevel newLevel);
|
2024-04-18 02:47:28 +00:00
|
|
|
void SendHTTPMonitorInfo(const SystemAddress& sysAddr, const HTTPMonitorInfo& info);
|
|
|
|
void SendDebugOuput(const SystemAddress& sysAddr, const std::string& data);
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // WORLDPACKETS_H
|