43 if (
GetPlayer()->IsValidAttackTarget(player))
52 for (PlayerTalentMap::value_type
const& v : *talents)
54 inspectResult.
Talents.push_back(v.first);
57 for (std::size_t i = 0; i < pvpTalents.size(); ++i)
69 inspectResult.
GuildData->GuildGUID = guild->GetGUID();
70 inspectResult.
GuildData->NumGuildMembers = guild->GetMembersCount();
71 inspectResult.
GuildData->AchievementPoints = guild->GetAchievementMgr().GetAchievementPoints();
76 inspectResult.
AzeriteLevel = azeriteItem->GetEffectiveLevel();
102 if (
GetPlayer()->IsValidAttackTarget(player))
constexpr uint32 ITEM_ID_HEART_OF_AZEROTH
#define TC_LOG_DEBUG(filterType__,...)
std::array< uint32, MAX_PVP_TALENT_SLOTS > PlayerPvpTalentMap
std::unordered_map< uint32, PlayerSpellState > PlayerTalentMap
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
AzeriteItem * ToAzeriteItem()
std::string ToString() const
ChrSpecialization GetPrimarySpecialization() const
UF::UpdateField< UF::PlayerData, 0, TYPEID_PLAYER > m_playerData
UF::TraitConfig const * GetTraitConfig(int32 configId) const
Item * GetItemByEntry(uint32 entry, ItemSearchLocation where=ItemSearchLocation::Default) const
void SendRespondInspectAchievements(Player *player) const
ObjectGuid::LowType GetGuildId() const
uint8 GetActiveTalentGroup() const
PlayerPvpTalentMap const & GetPvpTalentMap(uint8 spec) const
float GetAverageItemLevel() const
UF::UpdateField< UF::ActivePlayerData, 0, TYPEID_ACTIVE_PLAYER > m_activePlayerData
PlayerTalentMap const * GetTalentMap(uint8 spec) const
Team GetEffectiveTeam() const
PlayerModelDisplayInfo DisplayInfo
WorldPacket const * Write() override
std::array< uint16, MAX_PVP_TALENT_SLOTS > PvpTalents
TraitInspectInfo TalentTraits
Optional< int32 > AzeriteLevel
std::vector< uint16 > Talents
Optional< InspectGuildData > GuildData
Player * GetPlayer() const
void HandleQueryInspectAchievements(WorldPackets::Inspect::QueryInspectAchievements &inspect)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleInspectOpcode(WorldPackets::Inspect::Inspect &inspect)
@ CONFIG_TALENTS_INSPECTING
TC_GAME_API Player * GetPlayer(Map const *, ObjectGuid const &guid)
std::string ToString(Type &&val, Params &&... params)
void Initialize(Player const *player)
int32 ChrSpecializationID
Traits::TraitConfig Config