mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-27 07:57:21 +00:00
6aa90ad5b2
* Breakout rest of the enums from dcommonvars so we don't have to deal with merge conflicts ePlayerFlags is not a scoped enum, yet, due to it's complexity * address feedback * make player flag types consistent * fix typo
29 lines
1.4 KiB
C++
29 lines
1.4 KiB
C++
#ifndef WORLDPACKETS_H
|
|
#define WORLDPACKETS_H
|
|
|
|
#include "dCommonVars.h"
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include "Entity.h"
|
|
|
|
class User;
|
|
struct SystemAddress;
|
|
enum class eGameMasterLevel : uint8_t;
|
|
enum class eCharacterCreationResponse : uint8_t;
|
|
enum class eRenameResponse : uint8_t;
|
|
|
|
namespace WorldPackets {
|
|
void SendLoadStaticZone(const SystemAddress& sysAddr, float x, float y, float z, uint32_t checksum);
|
|
void SendCharacterList(const SystemAddress& sysAddr, User* user);
|
|
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, Entity* entity, 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);
|
|
}
|
|
|
|
#endif // WORLDPACKETS_H
|