TrinityCore
instance_azure_vault.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "AreaBoundary.h"
19#include "InstanceScript.h"
20#include "ScriptMgr.h"
21#include "azure_vault.h"
22
24{
25 { DATA_LEYMOR, new CircleBoundary(Position(-5129.39f, 1253.30f), 75.0f) }
26};
27
29{
34 { 0, 0 } // END
35};
36
38{
42};
43
45{
46 { DATA_LEYMOR, {{ 2582 }} },
47 { DATA_AZUREBLADE, {{ 2585 }} },
48 { DATA_TELASH_GREYWING, {{ 2583 }} },
49 { DATA_UMBRELSKUL, {{ 2584 }} },
50};
51
53{
54 public:
56
58 {
60 {
67
68 _leymorIntroDone = false;
69 }
70
71 uint32 GetData(uint32 dataId) const override
72 {
73 switch (dataId)
74 {
76 return _leymorIntroDone ? 1 : 0;
77 default:
78 break;
79 }
80 return 0;
81 }
82
83 void SetData(uint32 dataId, uint32 /*value*/) override
84 {
85 switch (dataId)
86 {
88 _leymorIntroDone = true; // no need to pass value, it will never reset to false
89 break;
90 default:
91 break;
92 }
93 }
94
95 private:
97 };
98
100 {
102 }
103};
104
106{
108}
uint32_t uint32
Definition: Define.h:142
#define DataHeader
uint32 const EncounterCount
#define AVScriptName
Definition: azure_vault.h:24
@ GO_ARCANE_VAULTS_DOOR_LEYMOR_EXIT
Definition: azure_vault.h:54
@ GO_ARCANE_VAULTS_DOOR_LEYMOR_ENTRANCE
Definition: azure_vault.h:53
@ BOSS_UMBRELSKUL
Definition: azure_vault.h:45
@ BOSS_TELASH_GREYWING
Definition: azure_vault.h:44
@ BOSS_LEYMOR
Definition: azure_vault.h:42
@ BOSS_AZUREBLADE
Definition: azure_vault.h:43
@ DATA_AZUREBLADE
Definition: azure_vault.h:32
@ DATA_LEYMOR_INTRO_DONE
Definition: azure_vault.h:36
@ DATA_LEYMOR
Definition: azure_vault.h:31
@ DATA_TELASH_GREYWING
Definition: azure_vault.h:33
@ DATA_UMBRELSKUL
Definition: azure_vault.h:34
void SetBossNumber(uint32 number)
void LoadDungeonEncounterData(T const &encounters)
void LoadDoorData(DoorData const *data)
void LoadBossBoundaries(BossBoundaryData const &data)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
InstanceScript * GetInstanceScript(InstanceMap *map) const override
ObjectData const creatureData[]
void AddSC_instance_azure_vault()
DoorData const doorData[]
BossBoundaryData const boundaries
DungeonEncounterData const encounters[]