feat: show LFG dungeon name in Dungeon Finder queue messages

Add LFGDungeons.dbc cache (loadLfgDungeonDbc / getLfgDungeonName) and
use it to enrich three LFG chat messages in WotLK:
- handleLfgJoinResult: "Joined the queue for Culling of Stratholme."
- handleLfgProposalUpdate case 1: "Group found for Halls of Lightning!"
- handleLfgProposalUpdate case 2: "A group has been found for ... Accept or decline."
Falls back to generic text when DBC is unavailable or dungeon ID unknown.
This commit is contained in:
Kelsi 2026-03-13 08:14:47 -07:00
parent 59e29e2988
commit ed02f5872a
3 changed files with 66 additions and 5 deletions

View file

@ -2977,6 +2977,12 @@ private:
bool mapNameCacheLoaded_ = false;
void loadMapNameCache();
std::string getMapName(uint32_t mapId) const;
// LFG dungeon name cache (lazy-loaded from LFGDungeons.dbc; WotLK only)
std::unordered_map<uint32_t, std::string> lfgDungeonNameCache_;
bool lfgDungeonNameCacheLoaded_ = false;
void loadLfgDungeonDbc();
std::string getLfgDungeonName(uint32_t dungeonId) const;
std::vector<TrainerTab> trainerTabs_;
void handleTrainerList(network::Packet& packet);
void loadSpellNameCache();