30{
31
34
36 {
37 if (!player->FindMap() || player->GetSession()->PlayerLoading())
38 continue;
39
40 std::string playerName = player->GetName();
41 std::wstring widePlayerName;
42
44 continue;
45
47
48 std::string guildName =
sGuildMgr->GetGuildNameById(player->GetGuildId());
49 std::wstring wideGuildName;
50
52 continue;
53
55
56 _whoListStorage.emplace_back(player->GetGUID(), player->GetTeamId(), player->GetSession()->GetSecurity(), player->GetLevel(),
57 player->getClass(), player->getRace(),
58 (player->IsSpectator() ? 4395 : player->GetZoneId()), player->getGender(), player->IsVisible(),
59 widePlayerName, wideGuildName, playerName, guildName);
60 }
61}
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 sGuildMgr
Definition: GuildMgr.h:51
#define sWorld
Definition: World.h:444
HashMapHolder< Player >::MapType const & GetPlayers()
Definition: ObjectAccessor.cpp:78