2021-12-05 17:54:36 +00:00
|
|
|
/*
|
|
|
|
* Darkflame Universe
|
|
|
|
* Copyright 2018
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CLIENTPACKETS_H
|
|
|
|
#define CLIENTPACKETS_H
|
|
|
|
|
2024-01-07 07:05:57 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class PositionUpdate;
|
|
|
|
|
|
|
|
struct Packet;
|
|
|
|
|
|
|
|
struct ChatMessage {
|
|
|
|
uint8_t chatChannel = 0;
|
|
|
|
uint16_t unknown = 0;
|
|
|
|
std::u16string message;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ChatModerationRequest {
|
|
|
|
uint8_t chatLevel = 0;
|
|
|
|
uint8_t requestID = 0;
|
|
|
|
std::string receiver;
|
|
|
|
std::string message;
|
|
|
|
};
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
namespace ClientPackets {
|
2024-01-07 07:05:57 +00:00
|
|
|
ChatMessage HandleChatMessage(Packet* packet);
|
|
|
|
PositionUpdate HandleClientPositionUpdate(Packet* packet);
|
|
|
|
ChatModerationRequest HandleChatModerationRequest(Packet* packet);
|
|
|
|
int32_t SendTop5HelpIssues(Packet* packet);
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLIENTPACKETS_H
|