TrinityCore
Loading...
Searching...
No Matches
instance_neltharions_lair.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 "neltharions_lair.h"
22
24{
25 { DATA_ROKMORA, new RectangleBoundary(2855.4377f, 2953.1074f, 1360.5552f, 1438.9974f) }
26};
27
35
36static constexpr DungeonEncounterData encounters[] =
37{
38 { DATA_ROKMORA, {{ 1790 }} },
39 { DATA_ULAROGG_CRAGSHAPER, {{ 1791 }} },
40 { DATA_NARAXAS, {{ 1792 }} },
41 { DATA_DARGRUL_THE_UNDERKING, {{ 1793 }} },
42};
43
48
50{
51 public:
53
55 {
67
68 uint32 GetData(uint32 dataId) const override
69 {
70 switch (dataId)
71 {
73 return _rokmoraIntroState;
74 default:
75 break;
76 }
77 return 0;
78 }
79
80 void SetData(uint32 dataId, uint32 value) override
81 {
82 switch (dataId)
83 {
85 _rokmoraIntroState = value;
86 break;
87 default:
88 break;
89 }
90 }
91
92 private:
94 };
95
100};
101
uint8_t uint8
Definition Define.h:156
uint32_t uint32
Definition Define.h:154
@ NOT_STARTED
#define DataHeader
uint32 const EncounterCount
void SetBossNumber(uint32 number)
void LoadObjectData(std::span< ObjectData const > creatureData, std::span< ObjectData const > gameObjectData)
void SetHeaders(std::string_view dataHeaders)
void LoadDungeonEncounterData(std::span< DungeonEncounterData const > encounters)
void LoadDoorData(std::span< DoorData const > data)
void LoadBossBoundaries(BossBoundaryData const &data)
InstanceScript * GetInstanceScript(InstanceMap *map) const override
static constexpr ObjectData creatureData[]
static constexpr DoorData doorData[]
BossBoundaryData const boundaries
static constexpr DungeonEncounterData encounters[]
void AddSC_instance_neltharions_lair()
@ DATA_DARGRUL_THE_UNDERKING
@ DATA_ROKMORA_INTRO_STATE
@ DATA_ROKMORA
@ DATA_ULAROGG_CRAGSHAPER
@ DATA_NARAXAS
@ BOSS_ROKMORA
@ BOSS_ULAROGG_CRAGSHAPER
@ BOSS_DARGRUL_THE_UNDERKING
@ BOSS_NARAXAS
@ GO_MYSTIC_BARRIER
#define NLScriptName