TrinityCore
InstancePackets.h
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#ifndef InstancePackets_h__
19#define InstancePackets_h__
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23
24namespace WorldPackets
25{
26 namespace Instance
27 {
28 class UpdateLastInstance final : public ServerPacket
29 {
30 public:
32
33 WorldPacket const* Write() override;
34
36 };
37
38 // This packet is no longer sent - it is only here for documentation purposes
40 {
41 public:
43
44 WorldPacket const* Write() override;
45
46 int32 IOwnInstance = 0; // Used to control whether "Reset all instances" button appears on the UI - Script_CanShowResetInstances()
47 // but it has been deperecated in favor of simply checking group leader, being inside an instance or using dungeon finder
48 };
49
51 {
57
58 bool Locked = false;
59 bool Extended = false;
60 };
61
62 class InstanceInfo final : public ServerPacket
63 {
64 public:
66
67 WorldPacket const* Write() override;
68
69 std::vector<InstanceLock> LockList;
70 };
71
72 class ResetInstances final : public ClientPacket
73 {
74 public:
76
77 void Read() override { }
78 };
79
80 class InstanceReset final : public ServerPacket
81 {
82 public:
84
85 WorldPacket const* Write() override;
86
88 };
89
90 class InstanceResetFailed final : public ServerPacket
91 {
92 public:
94
95 WorldPacket const* Write() override;
96
99 };
100
101 class ResetFailedNotify final : public ServerPacket
102 {
103 public:
105
106 WorldPacket const* Write() override { return &_worldPacket; }
107 };
108
110 {
111 public:
113
114 WorldPacket const* Write() override;
115
116 bool Gm = false;
117 };
118
120 {
121 public:
123
124 void Read() override;
125
126 bool AcceptLock = false;
127 };
128
129 class RaidGroupOnly final : public ServerPacket
130 {
131 public:
133
134 WorldPacket const* Write() override;
135
138 };
139
140 class PendingRaidLock final : public ServerPacket
141 {
142 public:
144
145 WorldPacket const* Write() override;
146
149 bool Extending = false;
150 bool WarningOnly = false;
151 };
152
154 {
155 public:
157
158 WorldPacket const* Write() override;
159
163 bool Locked = false;
164 bool Extended = false;
165 };
166
168 {
169 public:
171
172 WorldPacket const* Write() override;
173
175 uint8 TargetFramePriority = 0; // used to set the initial position of the frame if multiple frames are sent
176 };
177
179 {
180 public:
182
183 WorldPacket const* Write() override;
184
186 };
187
189 {
190 public:
192
193 WorldPacket const* Write() override;
194
196 uint8 TargetFramePriority = 0; // used to update the position of the unit's current frame
197 };
198
200 {
201 public:
203
204 WorldPacket const* Write() override;
205
207 };
208
210 {
211 public:
213
214 WorldPacket const* Write() override;
215
217 };
218
220 {
221 public:
223
224 WorldPacket const* Write() override;
225
228 };
229
231 {
232 public:
234
235 WorldPacket const* Write() override;
236
238 };
239
241 {
242 public:
244
245 WorldPacket const* Write() override { return &_worldPacket; }
246 };
247
249 {
250 public:
252
253 WorldPacket const* Write() override;
254
255 uint32 InCombatResCount = 0; // amount of usable battle ressurections
259 bool InProgress = true;
260 };
261
263 {
264 public:
266
267 WorldPacket const* Write() override { return &_worldPacket; }
268 };
269
271 {
272 public:
274
275 WorldPacket const* Write() override { return &_worldPacket; }
276 };
277
279 {
280 public:
282
283 WorldPacket const* Write() override;
284
287 };
288
289 class BossKill final : public ServerPacket
290 {
291 public:
293
294 WorldPacket const* Write() override;
296 };
297 }
298}
299
300#endif // InstancePackets_h__
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
ResetFailedReason
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
std::vector< InstanceLock > LockList
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket _worldPacket
Definition: Packet.h:43
@ CMSG_RESET_INSTANCES
Definition: Opcodes.h:740
@ CMSG_INSTANCE_LOCK_RESPONSE
Definition: Opcodes.h:441
@ SMSG_INSTANCE_ENCOUNTER_ENGAGE_UNIT
Definition: Opcodes.h:1433
@ SMSG_INSTANCE_RESET
Definition: Opcodes.h:1446
@ SMSG_INSTANCE_ENCOUNTER_TIMER_START
Definition: Opcodes.h:1441
@ SMSG_RAID_INSTANCE_MESSAGE
Definition: Opcodes.h:1824
@ SMSG_INSTANCE_ENCOUNTER_IN_COMBAT_RESURRECTION
Definition: Opcodes.h:1435
@ SMSG_INSTANCE_ENCOUNTER_START
Definition: Opcodes.h:1440
@ SMSG_INSTANCE_ENCOUNTER_OBJECTIVE_START
Definition: Opcodes.h:1437
@ SMSG_INSTANCE_ENCOUNTER_DISENGAGE_UNIT
Definition: Opcodes.h:1431
@ SMSG_PENDING_RAID_LOCK
Definition: Opcodes.h:1683
@ SMSG_INSTANCE_ENCOUNTER_PHASE_SHIFT_CHANGED
Definition: Opcodes.h:1439
@ SMSG_UPDATE_INSTANCE_OWNERSHIP
Definition: Opcodes.h:2035
@ SMSG_BOSS_KILL
Definition: Opcodes.h:1041
@ SMSG_INSTANCE_RESET_FAILED
Definition: Opcodes.h:1447
@ SMSG_INSTANCE_ENCOUNTER_OBJECTIVE_UPDATE
Definition: Opcodes.h:1438
@ SMSG_RAID_GROUP_ONLY
Definition: Opcodes.h:1823
@ SMSG_INSTANCE_INFO
Definition: Opcodes.h:1445
@ SMSG_RESET_FAILED_NOTIFY
Definition: Opcodes.h:1849
@ SMSG_INSTANCE_ENCOUNTER_CHANGE_PRIORITY
Definition: Opcodes.h:1430
@ SMSG_INSTANCE_ENCOUNTER_GAIN_COMBAT_RESURRECTION_CHARGE
Definition: Opcodes.h:1434
@ SMSG_INSTANCE_ENCOUNTER_OBJECTIVE_COMPLETE
Definition: Opcodes.h:1436
@ SMSG_UPDATE_LAST_INSTANCE
Definition: Opcodes.h:2036
@ SMSG_INSTANCE_ENCOUNTER_END
Definition: Opcodes.h:1432
@ SMSG_INSTANCE_SAVE_CREATED
Definition: Opcodes.h:1448
STL namespace.