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();
93 TC_LOG_DEBUG(
"network",
"WorldSession::HandleQueryInspectAchievements: [{}] inspected unknown Player [{}]",
GetPlayer()->GetGUID().ToString(), inspect.
Guid.
ToString());
102 if (
GetPlayer()->IsValidAttackTarget(player))
constexpr uint32 ITEM_ID_HEART_OF_AZEROTH
#define TC_LOG_DEBUG(filterType__, message__,...)
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, int32(WowCS::EntityFragment::CGObject), TYPEID_PLAYER > m_playerData
UF::UpdateField< UF::ActivePlayerData, int32(WowCS::EntityFragment::CGObject), TYPEID_ACTIVE_PLAYER > m_activePlayerData
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
PlayerTalentMap const * GetTalentMap(uint8 spec) const
Team GetEffectiveTeam() const
PlayerModelDisplayInfo DisplayInfo
WorldPacket const * Write() override
std::array< uint16, MAX_PVP_TALENT_SLOTS > PvpTalents
Optional< int32 > AzeriteLevel
TraitInspectInfo TraitsInfo
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)
void Initialize(Player const *player)
Traits::TraitConfig ActiveCombatTraits