31{
32
35
37 {
38 if (!player->FindMap() || player->GetSession()->PlayerLoading())
39 continue;
40
41 std::string playerName = player->GetName();
42 std::wstring widePlayerName;
43
45 continue;
46
48
49 std::string guildName =
sGuildMgr->GetGuildNameById(player->GetGuildId());
50 std::wstring wideGuildName;
51
53 continue;
54
56
57 _whoListStorage.emplace_back(player->GetGUID(), player->GetTeamId(), player->GetSession()->GetSecurity(), player->GetLevel(),
58 player->getClass(), player->getRace(),
59 (player->IsSpectator() ? 4395 : player->GetZoneId()), player->getGender(), player->IsVisible(),
60 widePlayerName, wideGuildName, playerName, guildName);
61 }
62}
#define sGuildMgr
Definition GuildMgr.h:51
bool Utf8toWStr(char const *utf8str, std::size_t csize, wchar_t *wstr, std::size_t &wsize)
Definition Util.cpp:281
void wstrToLower(std::wstring &str)
Definition Util.cpp:382
#define sWorldSessionMgr
Definition WorldSessionMgr.h:110
Definition ObjectAccessor.h:61
HashMapHolder< Player >::MapType const & GetPlayers()
Definition ObjectAccessor.cpp:75