feat(Core/Player): Implement helper to send system messages to players (#15364)

This commit is contained in:
Skjalf 2023-03-12 15:35:54 -03:00 committed by GitHub
parent e2eb9fb82b
commit a9f945b436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -16220,3 +16220,8 @@ std::string Player::GetDebugInfo() const
sstr << Unit::GetDebugInfo();
return sstr.str();
}
void Player::SendSystemMessage(std::string_view msg, bool escapeCharacters)
{
ChatHandler(GetSession()).SendSysMessage(msg, escapeCharacters);
}

View file

@ -2575,6 +2575,8 @@ public:
[[nodiscard]] PlayerSetting GetPlayerSetting(std::string source, uint8 index);
void UpdatePlayerSetting(std::string source, uint8 index, uint32 value);
void SendSystemMessage(std::string_view msg, bool escapeCharacters = false);
std::string GetDebugInfo() const override;
protected: