mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-21 16:09:26 +02:00
23 lines
615 B
C++
23 lines
615 B
C++
#ifndef _PLAYERBOT_RAIDEOETRIGGERCONTEXT_H
|
|
#define _PLAYERBOT_RAIDEOETRIGGERCONTEXT_H
|
|
|
|
#include "AiObjectContext.h"
|
|
#include "NamedObjectContext.h"
|
|
#include "RaidEoETriggers.h"
|
|
|
|
class RaidEoETriggerContext : public NamedObjectContext<Trigger>
|
|
{
|
|
public:
|
|
RaidEoETriggerContext()
|
|
{
|
|
creators["malygos"] = &RaidEoETriggerContext::malygos;
|
|
creators["power spark"] = &RaidEoETriggerContext::power_spark;
|
|
}
|
|
|
|
private:
|
|
static Trigger* power_spark(PlayerbotAI* ai) { return new PowerSparkTrigger(ai); }
|
|
static Trigger* malygos(PlayerbotAI* ai) { return new MalygosTrigger(ai); }
|
|
};
|
|
|
|
#endif
|