mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 12:03:48 +00:00
feat(Core/Debug): GetDebugInfo implementation (#12705)
Cherry-pick: 9a924fb9d5
Co-authored-by: jackpoz <giacomopoz@gmail.com>
Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
@@ -2439,3 +2439,13 @@ std::string Pet::GenerateActionBarData() const
|
||||
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
std::string Pet::GetDebugInfo() const
|
||||
{
|
||||
std::stringstream sstr;
|
||||
sstr << Guardian::GetDebugInfo() << "\n"
|
||||
<< std::boolalpha
|
||||
<< "PetType: " << std::to_string(getPetType()) << " "
|
||||
<< "PetNumber: " << m_charmInfo->GetPetNumber();
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
@@ -143,6 +143,8 @@ public:
|
||||
void SetLoading(bool load) { m_loading = load; }
|
||||
|
||||
[[nodiscard]] bool HasTempSpell() const { return m_tempspell != 0; }
|
||||
|
||||
std::string GetDebugInfo() const override;
|
||||
protected:
|
||||
Player* m_owner;
|
||||
int32 m_happinessTimer;
|
||||
|
||||
Reference in New Issue
Block a user