Halls of Stone implementation

This commit is contained in:
Bobblybook
2024-10-15 22:40:47 +11:00
parent 608f9d1a68
commit 70c9bdbd9d
15 changed files with 293 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
#ifndef _PLAYERBOT_WOTLKDUNGEONHOSTRIGGERCONTEXT_H
#define _PLAYERBOT_WOTLKDUNGEONHOSTRIGGERCONTEXT_H
#include "NamedObjectContext.h"
#include "AiObjectContext.h"
#include "HallsOfStoneTriggers.h"
class WotlkDungeonHoSTriggerContext : public NamedObjectContext<Trigger>
{
public:
WotlkDungeonHoSTriggerContext()
{
creators["ground slam"] = &WotlkDungeonHoSTriggerContext::ground_slam;
creators["lightning ring"] = &WotlkDungeonHoSTriggerContext::lightning_ring;
}
private:
static Trigger* ground_slam(PlayerbotAI* ai) { return new KrystallusGroundSlamTrigger(ai); }
static Trigger* lightning_ring(PlayerbotAI* ai) { return new SjonnirLightningRingTrigger(ai); }
};
#endif