Update ChatActionContext.h

Added OpenItem chat handler
This commit is contained in:
avirar
2024-10-03 12:38:58 +10:00
committed by GitHub
parent 900b4c48b0
commit 53fca2b78b

View File

@@ -73,12 +73,14 @@
#include "UseMeetingStoneAction.h"
#include "WhoAction.h"
#include "WtsAction.h"
#include "OpenItemAction.h"
class ChatActionContext : public NamedObjectContext<Action>
{
public:
ChatActionContext()
{
creators["open items"] = &ChatActionContext::open_items;
creators["range"] = &ChatActionContext::range;
creators["stats"] = &ChatActionContext::stats;
creators["quests"] = &ChatActionContext::quests;
@@ -178,6 +180,7 @@ public:
}
private:
static Action* open_items(PlayerbotAI* botAI) { return new OpenItemsAction(botAI); }
static Action* range(PlayerbotAI* botAI) { return new RangeAction(botAI); }
static Action* flag(PlayerbotAI* botAI) { return new FlagAction(botAI); }
static Action* craft(PlayerbotAI* botAI) { return new SetCraftAction(botAI); }