mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-27 16:07:22 +00:00
99e7349f6c
* feat: showall, findplayer, get/openhttpmoninfo http monitor info is planned to be used later, just putting in info that i've since reverse engineered and don't want lost Additionally add debug world packet for duture dev use Tested all new commands and variation of command arguments * fix missing newline at eofs * address most feedback * Compormise and use struct with (de)serialize * remove httpmoninfo commands
42 lines
1.8 KiB
C++
42 lines
1.8 KiB
C++
#ifndef WORLDPACKETS_H
|
|
#define WORLDPACKETS_H
|
|
|
|
#include "dCommonVars.h"
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
class User;
|
|
struct SystemAddress;
|
|
enum class eGameMasterLevel : uint8_t;
|
|
enum class eCharacterCreationResponse : uint8_t;
|
|
enum class eRenameResponse : uint8_t;
|
|
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;
|
|
};
|
|
|
|
namespace WorldPackets {
|
|
void SendLoadStaticZone(const SystemAddress& sysAddr, float x, float y, float z, uint32_t checksum, LWOZONEID zone);
|
|
void SendCharacterCreationResponse(const SystemAddress& sysAddr, eCharacterCreationResponse response);
|
|
void SendCharacterRenameResponse(const SystemAddress& sysAddr, eRenameResponse response);
|
|
void SendCharacterDeleteResponse(const SystemAddress& sysAddr, bool response);
|
|
void SendTransferToWorld(const SystemAddress& sysAddr, const std::string& serverIP, uint32_t serverPort, bool mythranShift);
|
|
void SendServerState(const SystemAddress& sysAddr);
|
|
void SendCreateCharacter(const SystemAddress& sysAddr, int64_t reputation, LWOOBJID player, const std::string& xmlData, const std::u16string& username, eGameMasterLevel gm);
|
|
void SendChatModerationResponse(const SystemAddress& sysAddr, bool requestAccepted, uint32_t requestID, const std::string& receiver, std::vector<std::pair<uint8_t, uint8_t>> unacceptedItems);
|
|
void SendGMLevelChange(const SystemAddress& sysAddr, bool success, eGameMasterLevel highestLevel, eGameMasterLevel prevLevel, eGameMasterLevel newLevel);
|
|
void SendHTTPMonitorInfo(const SystemAddress& sysAddr, const HTTPMonitorInfo& info);
|
|
void SendDebugOuput(const SystemAddress& sysAddr, const std::string& data);
|
|
}
|
|
|
|
#endif // WORLDPACKETS_H
|