refactor(Core/Packet): Guild (#9411)

* Core/Packet: Guild

* Winfi
This commit is contained in:
IntelligentQuantum
2021-12-11 12:30:06 +03:30
committed by GitHub
parent fad214efe0
commit 3591f69662
14 changed files with 1800 additions and 920 deletions
+4 -4
View File
@@ -1266,13 +1266,13 @@ public:
// reserved names
void LoadReservedPlayersNames();
[[nodiscard]] bool IsReservedName(std::string const& name) const;
[[nodiscard]] bool IsReservedName(std::string_view name) const;
void AddReservedPlayerName(std::string const& name);
// name with valid structure and symbols
static uint8 CheckPlayerName(std::string const& name, bool create = false);
static PetNameInvalidReason CheckPetName(std::string const& name);
static bool IsValidCharterName(std::string const& name);
static uint8 CheckPlayerName(std::string_view name, bool create = false);
static PetNameInvalidReason CheckPetName(std::string_view name);
static bool IsValidCharterName(std::string_view name);
static bool IsValidChannelName(std::string const& name);
static bool CheckDeclinedNames(std::wstring w_ownname, DeclinedName const& names);