mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update ChatActionContext.h
Added OpenItem chat handler
This commit is contained in:
@@ -73,12 +73,14 @@
|
|||||||
#include "UseMeetingStoneAction.h"
|
#include "UseMeetingStoneAction.h"
|
||||||
#include "WhoAction.h"
|
#include "WhoAction.h"
|
||||||
#include "WtsAction.h"
|
#include "WtsAction.h"
|
||||||
|
#include "OpenItemAction.h"
|
||||||
|
|
||||||
class ChatActionContext : public NamedObjectContext<Action>
|
class ChatActionContext : public NamedObjectContext<Action>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ChatActionContext()
|
ChatActionContext()
|
||||||
{
|
{
|
||||||
|
creators["open items"] = &ChatActionContext::open_items;
|
||||||
creators["range"] = &ChatActionContext::range;
|
creators["range"] = &ChatActionContext::range;
|
||||||
creators["stats"] = &ChatActionContext::stats;
|
creators["stats"] = &ChatActionContext::stats;
|
||||||
creators["quests"] = &ChatActionContext::quests;
|
creators["quests"] = &ChatActionContext::quests;
|
||||||
@@ -178,6 +180,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
static Action* open_items(PlayerbotAI* botAI) { return new OpenItemsAction(botAI); }
|
||||||
static Action* range(PlayerbotAI* botAI) { return new RangeAction(botAI); }
|
static Action* range(PlayerbotAI* botAI) { return new RangeAction(botAI); }
|
||||||
static Action* flag(PlayerbotAI* botAI) { return new FlagAction(botAI); }
|
static Action* flag(PlayerbotAI* botAI) { return new FlagAction(botAI); }
|
||||||
static Action* craft(PlayerbotAI* botAI) { return new SetCraftAction(botAI); }
|
static Action* craft(PlayerbotAI* botAI) { return new SetCraftAction(botAI); }
|
||||||
|
|||||||
Reference in New Issue
Block a user