◆ CreatureCountWorker()
| debug_commandscript::CreatureCountWorker::CreatureCountWorker |
( |
| ) |
|
|
inline |
◆ GetTopCreatureCount()
| std::vector< std::pair< uint32, uint32 > > debug_commandscript::CreatureCountWorker::GetTopCreatureCount |
( |
uint32 |
count | ) |
|
|
inline |
1507 {
1508 auto comp = [](std::pair<uint32, uint32> const& a, std::pair<uint32, uint32> const& b)
1509 {
1510 return a.second > b.second;
1511 };
1513
1514 count = std::min(count,
uint32(set.size()));
1515 std::vector<std::pair<uint32, uint32>> result(count);
1516 std::copy_n(set.begin(), count, result.begin());
1517
1518 return result;
1519 }
std::uint32_t uint32
Definition Define.h:107
std::unordered_map< uint32, uint32 > creatureIds
Definition cs_debug.cpp:1522
References creatureIds.
Referenced by debug_commandscript::HandleDebugObjectCountMap().
◆ Visit() [1/2]
| void debug_commandscript::CreatureCountWorker::Visit |
( |
std::unordered_map< ObjectGuid, Creature * > & |
creatureMap | ) |
|
|
inline |
1495 {
1496 for (auto const& p : creatureMap)
1497 {
1499 ++count;
1500 }
1501 }
References creatureIds.
◆ Visit() [2/2]
template<class T >
| void debug_commandscript::CreatureCountWorker::Visit |
( |
std::unordered_map< ObjectGuid, T * > & |
| ) |
|
|
inline |
◆ creatureIds
| std::unordered_map<uint32, uint32> debug_commandscript::CreatureCountWorker::creatureIds |
|
private |
The documentation for this class was generated from the following file: