feat(Core/Player): Implement helper to send system messages to players (#15364)
This commit is contained in:
parent
e2eb9fb82b
commit
a9f945b436
2 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue