Refactor GossipHelloAction with overload (#1628)

* Add overload for GossipHelloAction

* Refactor GossipHelloAction
This commit is contained in:
Spargel
2025-09-16 13:20:48 -05:00
committed by GitHub
parent b388657bf6
commit 907f1aff61
2 changed files with 61 additions and 50 deletions

View File

@@ -16,10 +16,12 @@ public:
GossipHelloAction(PlayerbotAI* botAI) : Action(botAI, "gossip hello") {}
bool Execute(Event event) override;
// Overload for direct usage
bool Execute(ObjectGuid guid, int32 menuToSelect, bool silent = false);
private:
void TellGossipMenus();
bool ProcessGossip(int32 menuToSelect);
bool ProcessGossip(int32 menuToSelect, bool silent);
void TellGossipText(uint32 textId);
};