chore: use client enum packet type instead (#1776)

Same values, different namespace and not duplicated
This commit is contained in:
David Markowitz
2025-04-23 01:55:52 -07:00
committed by GitHub
parent 93fa4e268f
commit 65f3c33ca5
2 changed files with 11 additions and 12 deletions

View File

@@ -5,17 +5,16 @@ struct Packet;
#include <cstdint>
/**
* @brief The ignore list allows players to ignore someone silently. Requests will generally be blocked by the client, but they should also be checked
* on the server as well so the sender can get a generic error code in response.
*
*/
namespace ChatIgnoreList {
void GetIgnoreList(Packet* packet);
void AddIgnore(Packet* packet);
void RemoveIgnore(Packet* packet);
enum class Response : uint8_t {
ADD_IGNORE = 32,
REMOVE_IGNORE = 33,
GET_IGNORE = 34,
};
enum class AddResponse : uint8_t {
SUCCESS,
ALREADY_IGNORED,