Add another helper to ScriptedGossip.h for resolving listId -> action.

(cherry picked from commit 302a039b7c1034ad0be67b1895565caf95853c2b)
This commit is contained in:
treeston
2020-06-14 23:49:04 +02:00
committed by funjoker
parent c99963b023
commit 803012cc40
2 changed files with 2 additions and 0 deletions
@@ -19,6 +19,7 @@
#include "Creature.h"
#include "Player.h"
uint32 GetGossipActionFor(Player* player, uint32 gossipListId) { return player->PlayerTalkClass->GetGossipOptionAction(gossipListId); }
void ClearGossipMenuFor(Player* player) { player->PlayerTalkClass->ClearMenus(); }
// Using provided text, not from DB
void AddGossipItemFor(Player* player, uint32 icon, std::string const& text, uint32 sender, uint32 action) { player->PlayerTalkClass->GetGossipMenu().AddMenuItem(-1, icon, text, sender, action, "", 0); }