2021-12-05 17:54:36 +00:00
|
|
|
#ifndef WORLDPACKETS_H
|
|
|
|
#define WORLDPACKETS_H
|
|
|
|
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
#include <string>
|
|
|
|
#include <unordered_map>
|
2022-04-01 01:17:23 +00:00
|
|
|
#include "Entity.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
class User;
|
|
|
|
struct SystemAddress;
|
|
|
|
|
|
|
|
namespace WorldPackets {
|
2022-07-28 13:39:57 +00:00
|
|
|
void SendLoadStaticZone(const SystemAddress& sysAddr, float x, float y, float z, uint32_t checksum);
|
|
|
|
void SendCharacterList(const SystemAddress& sysAddr, User* user);
|
2021-12-05 17:54:36 +00:00
|
|
|
void SendCharacterCreationResponse(const SystemAddress& sysAddr, eCreationResponse response);
|
|
|
|
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);
|
2022-07-28 13:39:57 +00:00
|
|
|
void SendCreateCharacter(const SystemAddress& sysAddr, Entity* entity, const std::string& xmlData, const std::u16string& username, int32_t 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);
|
2022-07-28 13:39:57 +00:00
|
|
|
void SendGMLevelChange(const SystemAddress& sysAddr, bool success, uint8_t highestLevel, uint8_t prevLevel, uint8_t newLevel);
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // WORLDPACKETS_H
|