mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user