TrinityCore
Loading...
Searching...
No Matches
MiscPackets.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 MiscPackets_h__
19#define MiscPackets_h__
20
21#include "Packet.h"
22#include "Position.h"
23#include "ObjectGuid.h"
24#include "Optional.h"
25#include "Weather.h"
26#include "WowTime.h"
27#include <array>
28
29enum WeatherState : uint32;
30
31namespace WorldPackets
32{
33 namespace Misc
34 {
46
58
60 {
61 public:
64
65 WorldPacket const* Write() override;
66
68 };
69
86
88 {
89 public:
92
93 WorldPacket const* Write() override;
94
96 bool Paused = true;
97 };
98
100 {
101 public:
104
105 WorldPacket const* Write() override;
106
108 };
109
120
122 {
123 public:
125
126 WorldPacket const* Write() override;
127
128 float NewSpeed = 0.0f;
131 };
132
134 {
135 public:
137
138 WorldPacket const* Write() override { return &_worldPacket; }
139 };
140
142 {
143 public:
145
146 WorldPacket const* Write() override;
147
149 };
150
152 {
153 public:
155
156 WorldPacket const* Write() override;
157
159 };
160
162 {
163 public:
164 Weather();
165 Weather(WeatherState weatherID, float intensity = 0.0f, bool abrupt = false);
166
167 WorldPacket const* Write() override;
168
169 bool Abrupt = false;
170 float Intensity = 0.0f;
172 };
173
175 {
176 public:
178
179 WorldPacket const* Write() override;
180
183 std::array<uint32, MAX_POWERS> PowerDelta = { };
184 std::array<uint32, MAX_STATS> StatDelta = { };
185 };
186
188 {
189 public:
192
193 WorldPacket const* Write() override;
194
195 uint32 SoundKitID = 0;
196 };
197
199 {
200 public:
204
205 WorldPacket const* Write() override;
206
208 uint32 SoundKitID = 0;
209
210 };
211
213 {
214 public:
217
218 WorldPacket const* Write() override;
219
220 uint32 SoundKitID = 0;
221 };
222
224 {
225 public:
227
228 void Read() override { }
229 };
230
232 {
233 public:
235
236 void Read() override { }
237 };
238
240 {
241 public:
243
244 void Read() override { }
245 };
246
248 {
249 public:
251
252 void Read() override { }
253 };
254
266
268 {
269 public:
271
272 WorldPacket const* Write() override;
273
277 };
278
280 {
281 public:
283
284 void Read() override;
285
288 };
289
291 {
292 public:
294
295 WorldPacket const* Write() override;
296
301 };
302
304 {
305 public:
307
308 void Read() override;
309
310 bool HasPvPStatus() const { return GetSize() == 1; }
311
313 };
314
315 class UITime final : public ServerPacket
316 {
317 public:
319
320 WorldPacket const* Write() override;
321
323 };
324
326 {
327 public:
329
330 void Read() override;
331
335 float Facing = 0.0f;
336 };
337
339 {
340 public:
342
343 WorldPacket const* Write() override;
344
346 };
347
349 {
350 public:
352
353 WorldPacket const* Write() override;
354
357 };
358
360 {
361 public:
363
364 WorldPacket const* Write() override;
365
367 };
368
370 {
371 public:
373
374 void Read() override;
375
377 };
378
380 {
381 public:
383
384 void Read() override;
385
386 bool CheckInstance = false;
387 };
388
399 }
400}
401
402#endif // MiscPackets_h__
#define TC_GAME_API
Definition Define.h:114
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
Definition Unit.h:769
WorldPacket const * Write() override
TaggedPosition< Position::XYZ > BindPosition
Definition MiscPackets.h:43
WorldPacket const * Write() override
CompleteCinematic(WorldPacket &&packet)
CompleteMovie(WorldPacket &&packet)
WorldPacket const * Write() override
TaggedPosition< Position::XYZ > Loc
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
std::array< uint32, MAX_STATS > StatDelta
std::array< uint32, MAX_POWERS > PowerDelta
WorldPacket const * Write() override
WorldPacket const * Write() override
NextCinematicCamera(WorldPacket &&packet)
OpeningCinematic(WorldPacket &&packet)
WorldPacket const * Write() override
PauseMirrorTimer(uint32 timer, bool paused)
Definition MiscPackets.h:91
WorldPacket const * Write() override
PlayMusic(uint32 soundKitID)
PlayObjectSound(ObjectGuid const &sourceObjectGUID, uint32 soundKitID)
PlaySound(uint32 soundKitID)
WorldPacket const * Write() override
PlayerBound(ObjectGuid binderId, uint32 areaId)
Definition MiscPackets.h:51
WorldPacket const * Write() override
RandomRollClient(WorldPacket &&packet)
WorldPacket const * Write() override
ReclaimCorpse(WorldPacket &&packet)
RepopRequest(WorldPacket &&packet)
ResurrectResponse(WorldPacket &&packet)
StartMirrorTimer(uint32 timer, uint32 value, uint32 maxValue, int32 scale, bool paused, uint32 spellID)
Definition MiscPackets.h:74
WorldPacket const * Write() override
WorldPacket const * Write() override
TogglePvP(WorldPacket &&packet)
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
TaggedPosition< Position::XYZ > Pos
WorldTeleport(WorldPacket &&packet)
size_t GetSize() const
Definition Packet.h:39
WorldPacket _worldPacket
Definition Packet.h:42
@ MSG_RANDOM_ROLL
Definition Opcodes.h:536
@ SMSG_PAUSE_MIRROR_TIMER
Definition Opcodes.h:503
@ SMSG_INVALIDATE_PLAYER
Definition Opcodes.h:825
@ CMSG_REPOP_REQUEST
Definition Opcodes.h:375
@ CMSG_COMPLETE_MOVIE
Definition Opcodes.h:1154
@ CMSG_TOGGLE_PVP
Definition Opcodes.h:624
@ CMSG_RECLAIM_CORPSE
Definition Opcodes.h:495
@ SMSG_TRIGGER_CINEMATIC
Definition Opcodes.h:279
@ SMSG_CROSSED_INEBRIATION_THRESHOLD
Definition Opcodes.h:990
@ CMSG_COMPLETE_CINEMATIC
Definition Opcodes.h:281
@ SMSG_TRIGGER_MOVIE
Definition Opcodes.h:1153
@ SMSG_PLAYER_BOUND
Definition Opcodes.h:373
@ SMSG_PLAY_OBJECT_SOUND
Definition Opcodes.h:661
@ SMSG_PRE_RESURRECT
Definition Opcodes.h:1201
@ SMSG_LOGIN_SET_TIME_SPEED
Definition Opcodes.h:95
@ SMSG_BIND_POINT_UPDATE
Definition Opcodes.h:370
@ SMSG_CORPSE_RECLAIM_DELAY
Definition Opcodes.h:646
@ SMSG_PLAY_MUSIC
Definition Opcodes.h:660
@ CMSG_OPENING_CINEMATIC
Definition Opcodes.h:278
@ CMSG_WORLD_TELEPORT
Definition Opcodes.h:37
@ CMSG_NEXT_CINEMATIC_CAMERA
Definition Opcodes.h:280
@ SMSG_PLAY_SOUND
Definition Opcodes.h:751
@ SMSG_START_MIRROR_TIMER
Definition Opcodes.h:502
@ SMSG_LEVELUP_INFO
Definition Opcodes.h:497
@ SMSG_WORLD_STATE_UI_TIMER_UPDATE
Definition Opcodes.h:1300
@ SMSG_DURABILITY_DAMAGE_DEATH
Definition Opcodes.h:730
@ SMSG_BINDER_CONFIRM
Definition Opcodes.h:776
@ CMSG_RESURRECT_RESPONSE
Definition Opcodes.h:377
@ SMSG_DEATH_RELEASE_LOC
Definition Opcodes.h:917
@ SMSG_OVERRIDE_LIGHT
Definition Opcodes.h:1071
@ SMSG_STOP_MIRROR_TIMER
Definition Opcodes.h:504
WeatherState
Definition Weather.h:47
STL namespace.