TrinityCore
Loading...
Searching...
No Matches
QueryPackets.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 QueryPackets_h__
19#define QueryPackets_h__
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23
24#include "SharedDefines.h"
25#include "Creature.h"
26#include "GameObject.h"
27#include "ItemTemplate.h"
28#include "QuestDef.h"
29
30namespace WorldPackets
31{
32 namespace Query
33 {
35 {
36 public:
38
39 void Read() override;
40
43 };
44
62
64 {
65 public:
67
68 WorldPacket const* Write() override;
69
70 bool Allow = false;
73 };
74
76 {
77 public:
79
80 void Read() override;
81
83 };
84
86 {
87 std::string_view Name;
88 std::string_view RealmName;
92 DeclinedName const* DeclinedNames = nullptr;
93 };
94
96 {
97 public:
99
100 WorldPacket const* Write() override;
101
103 uint8 Result = 0; // 0 - full packet, != 0 - only guid
105 };
106
108 {
109 public:
111
112 void Read() override;
113
116 };
117
119 {
120 std::string Name;
121 std::string IconName;
122 std::string CastBarCaption;
123 std::string UnkString;
127 float Size = 0.0f;
129 };
130
142
150
152 {
153 public:
154 CorpseLocation() : ServerPacket(MSG_CORPSE_QUERY, 1 + 4 + 4 + 4 + 4 + 4 + 4) { }
155
156 WorldPacket const* Write() override;
157
162 bool Valid = false;
163 };
164
166 {
167 public:
169
170 void Read() override;
171
173 };
174
185
187 {
188 public:
190
191 void Read() override;
192
194 };
195
197 {
198 float DamageMin = 0.0f;
199 float DamageMax = 0.0f;
201 };
202
208
218
220 {
223 };
224
226 {
230 std::string Name;
260 float RangedModRange = 0.0f;
263 std::string Description;
288 };
289
291 {
292 public:
294
295 WorldPacket const* Write() override;
296
298 bool Allow = false;
300 };
301
312 }
313}
314
315#endif // QueryPackets_h__
static const uint32 MAX_CREATURE_QUEST_ITEMS
static const uint8 MAX_KILL_CREDIT
static const uint32 MAX_CREATURE_MODELS
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
#define MAX_GAMEOBJECT_QUEST_ITEMS
#define MAX_ITEM_PROTO_SOCKETS
#define MAX_ITEM_PROTO_DAMAGES
#define MAX_ITEM_PROTO_SPELLS
#define MAX_ITEM_PROTO_STATS
InventoryType
Spells
Definition PlayerAI.cpp:32
#define MAX_QUEST_LOG_SIZE
Definition QuestDef.h:36
@ MAX_SPELL_SCHOOL
@ GENDER_NONE
CreatureFamily
CreatureType
@ CLASS_NONE
#define MAX_GAMEOBJECT_DATA
TotemCategory
@ RACE_NONE
SpellCategory
Data
Definition Map.h:281
WorldPacket const * Write() override
TaggedPosition<::Position::XYZ > Position
TaggedPosition<::Position::XYZ > Position
WorldPacket const * Write() override
WorldPacket const * Write() override
QueryCreature(WorldPacket &&packet)
WorldPacket const * Write() override
QueryGameObject(WorldPacket &&packet)
QueryItemSingle(WorldPacket &&packet)
WorldPacket const * Write() override
Optional< PlayerGuidLookupData > Data
QueryPlayerName(WorldPacket &&packet)
QuestPOIQuery(WorldPacket &&packet)
uint32 MissingQuestPOIs[MAX_QUEST_LOG_SIZE]
@ SMSG_CREATURE_QUERY_RESPONSE
Definition Opcodes.h:126
@ CMSG_CREATURE_QUERY
Definition Opcodes.h:125
@ SMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE
Definition Opcodes.h:1236
@ CMSG_QUEST_POI_QUERY
Definition Opcodes.h:512
@ SMSG_NAME_QUERY_RESPONSE
Definition Opcodes.h:110
@ CMSG_NAME_QUERY
Definition Opcodes.h:109
@ SMSG_ITEM_QUERY_SINGLE_RESPONSE
Definition Opcodes.h:117
@ SMSG_GAMEOBJECT_QUERY_RESPONSE
Definition Opcodes.h:124
@ CMSG_GAMEOBJECT_QUERY
Definition Opcodes.h:123
@ MSG_CORPSE_QUERY
Definition Opcodes.h:563
@ CMSG_CORPSE_MAP_POSITION_QUERY
Definition Opcodes.h:1235
@ CMSG_ITEM_QUERY_SINGLE
Definition Opcodes.h:115
STL namespace.
uint32 QuestItems[MAX_CREATURE_QUEST_ITEMS]
uint32 ProxyCreatureID[MAX_KILL_CREDIT]
uint32 CreatureDisplayID[MAX_CREATURE_MODELS]
uint32 QuestItems[MAX_GAMEOBJECT_QUEST_ITEMS]
ItemStatData ItemStat[MAX_ITEM_PROTO_STATS]
uint32 Resistance[MAX_SPELL_SCHOOL]
ItemSocketData Socket[MAX_ITEM_PROTO_SOCKETS]
ItemDamageData Damage[MAX_ITEM_PROTO_DAMAGES]