Uncommented some utils functions for LFG

This commit is contained in:
Yehonal
2017-09-18 19:36:26 +02:00
parent 84d6011a3d
commit af6fc3d873
3 changed files with 55 additions and 55 deletions
+3 -2
View File
@@ -11,7 +11,7 @@
namespace lfg
{
/*std::string ConcatenateDungeons(LfgDungeonSet const& dungeons)
std::string ConcatenateDungeons(LfgDungeonSet const& dungeons)
{
std::string dungeonstr = "";
if (!dungeons.empty())
@@ -92,6 +92,7 @@ std::string GetStateString(LfgState state)
}
return std::string(sObjectMgr->GetTrinityStringForDBCLocale(entry));
}*/
}
} // namespace lfg
+1 -2
View File
@@ -191,11 +191,10 @@ public:
}
};
/*
std::string ConcatenateDungeons(LfgDungeonSet const& dungeons);
std::string GetRolesString(uint8 roles);
std::string GetStateString(LfgState state);
*/
} // namespace lfg
+3 -3
View File
@@ -11,7 +11,7 @@
#include "Group.h"
#include "Player.h"
void GetPlayerInfo(ChatHandler* /*handler*/, Player* player)
void GetPlayerInfo(ChatHandler* handler, Player* player)
{
if (!player)
return;
@@ -19,10 +19,10 @@ void GetPlayerInfo(ChatHandler* /*handler*/, Player* player)
uint64 guid = player->GetGUID();
lfg::LfgDungeonSet dungeons = sLFGMgr->GetSelectedDungeons(guid);
/*std::string const& state = lfg::GetStateString(sLFGMgr->GetState(guid));
std::string const& state = lfg::GetStateString(sLFGMgr->GetState(guid));
handler->PSendSysMessage(LANG_LFG_PLAYER_INFO, player->GetName().c_str(),
state.c_str(), uint8(dungeons.size()), lfg::ConcatenateDungeons(dungeons).c_str(),
lfg::GetRolesString(sLFGMgr->GetRoles(guid)).c_str(), sLFGMgr->GetComment(guid).c_str());*/
lfg::GetRolesString(sLFGMgr->GetRoles(guid)).c_str(), sLFGMgr->GetComment(guid).c_str());
}
class lfg_commandscript : public CommandScript