32{
33
36
38 {
39 if (!player->FindMap() || player->GetSession()->PlayerLoading())
40 continue;
41
42 std::string playerName = player->GetName();
43 std::wstring widePlayerName;
44
46 continue;
47
49
50 std::string guildName =
sGuildMgr->GetGuildNameById(player->GetGuildId());
51 std::wstring wideGuildName;
52
54 continue;
55
57
58 _whoListStorage.emplace_back(player->GetGUID(), player->GetTeamId(), player->GetSession()->GetSecurity(), player->GetLevel(),
59 player->getClass(), player->getRace(),
60 (player->IsSpectator() ?
AREA_DALARAN : player->GetZoneId()), player->getGender(), player->IsVisible(),
61 widePlayerName, wideGuildName, playerName, guildName);
62 }
63}
@ AREA_DALARAN
Definition AreaDefines.h:149
#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