mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
28 lines
1002 B
C++
28 lines
1002 B
C++
// /*
|
|
// * Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
|
|
// and/or modify it under version 2 of the License, or (at your option), any later version.
|
|
// */
|
|
|
|
#ifndef _PLAYERBOT_RAIDULDUARTRIGGERCONTEXT_H
|
|
#define _PLAYERBOT_RAIDULDUARTRIGGERCONTEXT_H
|
|
|
|
#include "AiObjectContext.h"
|
|
#include "NamedObjectContext.h"
|
|
#include "RaidUlduarTriggers.h"
|
|
|
|
class RaidUlduarTriggerContext : public NamedObjectContext<Trigger>
|
|
{
|
|
public:
|
|
RaidUlduarTriggerContext()
|
|
{
|
|
creators["flame leviathan on vehicle"] = &RaidUlduarTriggerContext::flame_leviathan_on_vehicle;
|
|
creators["flame leviathan vehicle near"] = &RaidUlduarTriggerContext::flame_leviathan_vehicle_near;
|
|
}
|
|
|
|
private:
|
|
static Trigger* flame_leviathan_on_vehicle(PlayerbotAI* ai) { return new FlameLeviathanOnVehicleTrigger(ai); }
|
|
static Trigger* flame_leviathan_vehicle_near(PlayerbotAI* ai) { return new FlameLeviathanVehicleNearTrigger(ai); }
|
|
};
|
|
|
|
#endif
|