TrinityCore
Loading...
Searching...
No Matches
instance_waycrest_manor.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 "waycrest_manor.h"
22
24{
25 { DATA_HEARTSBANE_TRIAD, new BoundaryIntersectionBoundary(new ZRangeBoundary(235.0f, 243.0f), new RectangleBoundary(-618.580f, -524.305f, -188.971f, -137.363f)) },
26 { DATA_SOULBOUND_GOLIATH, new BoundaryUnionBoundary(new CircleBoundary(Position(-422.13f, -258.28f), 32.0f), new RectangleBoundary(-530.650f, -446.580f, -293.130f, -227.150f)) },
27 { DATA_LORD_AND_LADY_WAYCREST, new ZRangeBoundary(182.5f, 192.2f) }
28};
29
39
45
46static constexpr DungeonEncounterData encounters[] =
47{
48 { DATA_HEARTSBANE_TRIAD, {{ 2113 }} },
49 { DATA_SOULBOUND_GOLIATH, {{ 2114 }} },
50 { DATA_RAAL_THE_GLUTTONOUS, {{ 2115 }} },
51 { DATA_LORD_AND_LADY_WAYCREST, {{ 2116 }} },
52 { DATA_GORAK_TUL, {{ 2117 }} }
53};
54
56{
57public:
58 instance_waycrest_manor() : InstanceMapScript("instance_waycrest_manor", 1862) { }
59
61 {
73
74 uint32 GetData(uint32 dataId) const override
75 {
76 switch (dataId)
77 {
80 default:
81 break;
82 }
83 return 0;
84 }
85
86 void SetData(uint32 dataId, uint32 value) override
87 {
88 switch (dataId)
89 {
92 break;
93 default:
94 break;
95 }
96 }
97
98 private:
100 };
101
103 {
105 }
106};
107
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[]
static BossBoundaryData const boundaries
static constexpr DungeonEncounterData encounters[]
void AddSC_instance_waycrest_manor()
@ GO_WAYCREST_ORGAN_BARRIER
@ GO_HEARTSBANE_TRIAD_DOOR
@ DATA_SISTER_SOLENA
@ DATA_LORD_WAYCREST
@ DATA_RAAL_THE_GLUTTONOUS
@ DATA_SOULBOUND_GOLIATH_INTRO
@ DATA_HEARTSBANE_TRIAD
@ DATA_SISTER_BRIAR
@ DATA_LADY_WAYCREST
@ DATA_LORD_AND_LADY_WAYCREST
@ DATA_SISTER_MALADY
@ DATA_GORAK_TUL
@ DATA_SOULBOUND_GOLIATH
@ BOSS_SISTER_SOLENA
@ BOSS_SISTER_BRIAR
@ BOSS_SISTER_MALADY
@ BOSS_LADY_WAYCREST
@ BOSS_LORD_WAYCREST
@ BOSS_SOULBOUND_GOLIATH