Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293)

This commit is contained in:
Maks Szokalski
2020-08-21 00:47:03 +02:00
committed by GitHub
parent 8ab9a29af3
commit db8bdaa08f
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,11 @@
#include "Creature.h"
#include "Player.h"
uint32 GetGossipSenderFor(Player* player, uint32 menuId)
{
return player->PlayerTalkClass->GetGossipOptionSender(menuId);
}
uint32 GetGossipActionFor(Player* player, uint32 gossipListId)
{
return player->PlayerTalkClass->GetGossipOptionAction(gossipListId);

View File

@@ -81,6 +81,7 @@ enum eTradeskill
class Creature;
uint32 TC_GAME_API GetGossipSenderFor(Player* player, uint32 menuId);
uint32 TC_GAME_API GetGossipActionFor(Player* player, uint32 gossipListId);
void TC_GAME_API ClearGossipMenuFor(Player* player);
// Using provided text, not from DB