18 #ifndef QueryPackets_h__
19 #define QueryPackets_h__
126 void Read()
override;
156 void Read()
override;
186 void Read()
override;
221 void Read()
override;
243 return sizeof(
Type) +
sizeof(DisplayID) + (Name->size() + (4 * 1)) + (IconName.size() + 1) + (CastBarCaption.size() + 1) + (UnkString.size() + 1) +
sizeof(Data) +
sizeof(
Size) +
sizeof(
uint8) + (QuestItems.size() *
sizeof(
int32)) +
sizeof(
Expansion);
286 void Read()
override;
326 void Read()
override;
376 void Read()
override;
402 void Read()
override;
428 void Read()
override;
455 #endif // QueryPackets_h__
ObjectGuid UnitGUID
Definition: QueryPackets.h:414
float HpMulti
Definition: QueryPackets.h:51
uint32 NextPageID
Definition: QueryPackets.h:142
std::vector< QuestPOIBlobData > QuestPOIBlobDataStats
Definition: QueryPackets.h:358
Definition: QueryPackets.h:64
uint32 TextID
Definition: QueryPackets.h:159
Optional< uint32 > VirtualRealmAddress
current realm (?) (identifier made from the Index, BattleGroup and Region)
Definition: QueryPackets.h:78
Definition: QueryPackets.h:423
void Read() override
Definition: QueryPackets.cpp:96
ObjectGuid Id
Definition: QueryPackets.h:430
QuestCompletionNPCResponse()
Definition: QueryPackets.h:390
#define MAX_CREATURE_MODELS
Definition: Creature.h:73
WorldPacket const * Write() override
Definition: QueryPackets.cpp:423
ItemTextQuery(WorldPacket &&packet)
Definition: QueryPackets.h:426
std::vector< QuestPOIData > QuestPOIDataStats
Definition: QueryPackets.h:368
Definition: ByteBuffer.h:70
G3D::Vector3 Position
Definition: QueryPackets.h:275
Definition: QueryPackets.h:139
Definition: QueryPackets.h:175
uint32 RequiredExpansion
Definition: QueryPackets.h:56
Definition: QueryPackets.h:76
Definition: Opcodes.h:932
std::string CursorName
Definition: QueryPackets.h:47
int32 Flags
Definition: QueryPackets.h:348
void Read() override
Definition: QueryPackets.h:264
Definition: QueryPackets.h:281
std::vector< HotfixNotify > HotfixData
Definition: DB2Stores.h:125
std::string TitleAlt
Definition: QueryPackets.h:46
Definition: QueryPackets.h:33
Definition: Opcodes.h:1398
ObjectGuid Player
Definition: QueryPackets.h:116
QuestPOIQueryResponse()
Definition: QueryPackets.h:364
Definition: QueryPackets.h:381
PlayerGuidLookupData Data
Definition: QueryPackets.h:118
Definition: QueryPackets.h:371
ByteBuffer Data
Definition: QueryPackets.h:203
std::string Text
Definition: QueryPackets.h:143
bool Allow
Definition: QueryPackets.h:255
std::vector< int32 > NPCs
Definition: QueryPackets.h:384
int32 MapID
Definition: QueryPackets.h:344
uint32 Expansion
Definition: QueryPackets.h:238
uint32 Type
Definition: QueryPackets.h:233
ObjectGuid Guid
Definition: QueryPackets.h:223
void Read() override
Definition: QueryPackets.cpp:245
float Facing
Definition: QueryPackets.h:299
int32 ObjectiveIndex
Definition: QueryPackets.h:341
Definition: Opcodes.h:527
int32 BlobIndex
Definition: QueryPackets.h:340
bool Allow
Definition: QueryPackets.h:170
Definition: SharedDefines.h:101
bool Allow
Definition: QueryPackets.h:71
std::string Text
Definition: QueryPackets.h:435
bool Valid
Definition: QueryPackets.h:278
int32 UnkWoD1
Definition: QueryPackets.h:351
DBReply()
Definition: QueryPackets.h:195
Definition: Opcodes.h:517
Definition: QueryPackets.h:407
Definition: QueryPackets.h:361
uint32 PageTextID
Definition: QueryPackets.h:148
uint8 Result
Definition: QueryPackets.h:117
std::string Name
Definition: QueryPackets.h:420
Definition: Opcodes.h:1118
void Read() override
Definition: QueryPackets.cpp:219
WorldPacket const * Write() override
Definition: QueryPackets.cpp:358
int32 WorldEffectID
Definition: QueryPackets.h:349
void Read() override
Definition: QueryPackets.cpp:366
ByteBuffer & operator<<(ByteBuffer &data, WorldPackets::Query::PlayerGuidLookupHint const &lookupHint)
Definition: QueryPackets.cpp:101
std::vector< int32 > QuestItems
Definition: QueryPackets.h:54
Definition: QueryPackets.h:397
Definition: QueryPackets.h:192
QueryQuestCompletionNPCs(WorldPacket &&packet)
Definition: QueryPackets.h:374
std::string Name[4]
Definition: QueryPackets.h:229
QueryGameObject(WorldPacket &&packet)
Definition: QueryPackets.h:219
QueryNPCTextResponse()
Definition: QueryPackets.h:165
Definition: Opcodes.h:523
QueryTime(WorldPacket &&packet)
Definition: QueryPackets.h:305
Definition: QueryPackets.h:178
time_t CurrentTime
Definition: QueryPackets.h:317
WorldPacket const * Write() override
Definition: QueryPackets.cpp:348
Definition: QueryPackets.h:151
Definition: Opcodes.h:1401
uint32 PageTextID
Definition: QueryPackets.h:129
ObjectGuid Transport
Definition: QueryPackets.h:274
WorldPacket const * Write() override
Definition: QueryPackets.cpp:225
uint8 ClassID
Definition: QueryPackets.h:104
std::string Name[MAX_CREATURE_NAMES]
Definition: QueryPackets.h:60
int32 WorldMapAreaID
Definition: QueryPackets.h:345
Definition: QueryPackets.h:121
Definition: QueryPackets.h:216
Definition: QueryPackets.h:302
ObjectGuid AccountID
Definition: QueryPackets.h:97
Definition: QueryPackets.h:109
#define MAX_NPC_TEXT_OPTIONS
Definition: NPCHandler.h:28
std::vector< int32 > QuestCompletionNPCs
Definition: QueryPackets.h:378
int32 Priority
Definition: QueryPackets.h:347
CreatureStats Stats
Definition: QueryPackets.h:72
HotfixNotifyBlob()
Definition: QueryPackets.h:209
uint32 CreatureMovementInfoID
Definition: QueryPackets.h:55
std::string UnkString
Definition: QueryPackets.h:232
Definition: Opcodes.h:514
Definition: QueryPackets.h:321
Definition: QueryPackets.h:162
Definition: QueryPackets.h:206
int32 TimeOutRequest
Definition: QueryPackets.h:318
WorldPacket const * Write() override
Definition: QueryPackets.cpp:374
bool Allow
Definition: QueryPackets.h:202
uint32 CreatureID
Definition: QueryPackets.h:40
size_t GetDataSize() const
Definition: QueryPackets.h:240
void Read() override
Definition: QueryPackets.cpp:284
uint32 RecordID
Definition: QueryPackets.h:201
void Read() override
Definition: QueryPackets.cpp:343
Definition: Opcodes.h:1397
ObjectGuid GuidActual
Definition: QueryPackets.h:99
Definition: QueryPackets.h:355
WorldPacket const * Write() override
Definition: QueryPackets.cpp:199
uint32 CreatureID
Definition: QueryPackets.h:73
QueryPageTextResponse()
Definition: QueryPackets.h:135
#define MAX_KILL_CREDIT
Definition: Creature.h:72
QueryItemTextResponse()
Definition: QueryPackets.h:441
uint32 Flags[2]
Definition: QueryPackets.h:57
int32 QuestID
Definition: QueryPackets.h:383
WorldPacket const * Write() override
Definition: QueryPackets.cpp:259
Definition: QueryPackets.h:227
Definition: Opcodes.h:357
Definition: QueryPackets.h:92
Definition: Opcodes.h:1403
Definition: Opcodes.h:544
GameObjectStats Stats
Definition: QueryPackets.h:256
bool Allow
Definition: QueryPackets.h:146
QueryPetName(WorldPacket &&packet)
Definition: QueryPackets.h:400
WorldPacket const * Write() override
Definition: QueryPackets.cpp:29
Definition: Opcodes.h:515
Definition: Opcodes.h:518
#define MAX_CREATURE_NAMES
Definition: Creature.h:74
Definition: Opcodes.h:532
ObjectGuid UnitGUID
Definition: QueryPackets.h:404
uint32 Timestamp
Definition: QueryPackets.h:200
uint8 Sex
Definition: QueryPackets.h:103
QueryPlayerNameResponse()
Definition: QueryPackets.h:112
QueryCreatureResponse()
Definition: QueryPackets.h:67
WorldPacket const * Write() override
Definition: QueryPackets.cpp:290
uint8 Race
Definition: QueryPackets.h:102
Definition: Opcodes.h:1392
void Read() override
Definition: QueryPackets.cpp:193
ObjectGuid Player
Definition: QueryPackets.h:89
bool Allow
Definition: QueryPackets.h:415
int32_t int32
Definition: Define.h:146
uint32 BroadcastTextID[MAX_NPC_TEXT_OPTIONS]
Definition: QueryPackets.h:172
WorldPacket const * Write() override
Definition: QueryPackets.cpp:328
Definition: QueryPackets.h:387
uint32_t uint32
Definition: Define.h:150
G3D::Vector3 Position
Definition: QueryPackets.h:298
uint32 GameObjectID
Definition: QueryPackets.h:254
ObjectGuid BnetAccountID
Definition: QueryPackets.h:98
ObjectGuid Id
Definition: QueryPackets.h:445
float EnergyMulti
Definition: QueryPackets.h:52
float Probabilities[MAX_NPC_TEXT_OPTIONS]
Definition: QueryPackets.h:171
Definition: QueryPackets.h:82
void Read() override
Definition: QueryPackets.h:307
std::vector< QuestCompletionNPC > QuestCompletionNPCs
Definition: QueryPackets.h:394
uint32 GameObjectID
Definition: QueryPackets.h:224
uint32 VirtualRealmAddress
Definition: QueryPackets.h:101
QuestPOIQuery(WorldPacket &&packet)
Definition: QueryPackets.h:324
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
Definition: QueryPackets.h:259
ItemTextCache Item
Definition: QueryPackets.h:447
bool Initialize(ObjectGuid const &guid, Player const *player=nullptr)
Definition: QueryPackets.cpp:116
uint8 Level
Definition: QueryPackets.h:105
Definition: QueryPackets.h:438
Definition: Opcodes.h:1396
int32 QuestObjectiveID
Definition: QueryPackets.h:342
Definition: Opcodes.h:1404
uint32 TableHash
Definition: QueryPackets.h:188
int32 X
Definition: QueryPackets.h:334
int32 MapID
Definition: QueryPackets.h:277
bool HasDeclined
Definition: QueryPackets.h:417
Definition: QueryPackets.h:433
Definition: QueryPackets.h:247
Definition: QueryPackets.h:338
Definition: BattlegroundMgr.h:57
QueryNPCText(WorldPacket &&packet)
Definition: QueryPackets.h:154
DeclinedName DeclinedNames
Definition: QueryPackets.h:106
int32 QuestID
Definition: QueryPackets.h:357
Definition: Opcodes.h:944
QueryPetNameResponse()
Definition: QueryPackets.h:410
Definition: SharedDefines.h:166
uint32 Timestamp
Definition: QueryPackets.h:419
ObjectGuid Transport
Definition: QueryPackets.h:288
int32 Classification
Definition: QueryPackets.h:50
std::vector< QuestPOIBlobPoint > QuestPOIBlobPointStats
Definition: QueryPackets.h:352
Definition: Opcodes.h:233
CorpseLocation()
Definition: QueryPackets.h:270
QueryCorpseTransport(WorldPacket &&packet)
Definition: QueryPackets.h:284
WorldPacket const * Write() override
Definition: QueryPackets.cpp:271
WorldPacket const * Write() override
Definition: QueryPackets.cpp:443
Definition: QueryPackets.h:291
std::string Title
Definition: QueryPackets.h:45
QueryGameObjectResponse()
Definition: QueryPackets.h:250
PageTextInfo Info
Definition: QueryPackets.h:147
uint32 ID
Definition: QueryPackets.h:141
HotfixData const * Hotfixes
Definition: QueryPackets.h:213
int32 QuestObjectID
Definition: QueryPackets.h:343
Definition: QueryPackets.h:310
uint32 TableHash
Definition: QueryPackets.h:199
std::vector< int32 > QuestItems
Definition: QueryPackets.h:237
Definition: QueryPackets.h:332
int32_t int32
Definition: g3dmath.h:167
bool Leader
Definition: QueryPackets.h:53
uint8_t uint8
Definition: Define.h:152
QueryPageText(WorldPacket &&packet)
Definition: QueryPackets.h:124
Optional< uint32 > NativeRealmAddress
original realm (?) (identifier made from the Index, BattleGroup and Region)
Definition: QueryPackets.h:79
std::string NameAlt[MAX_CREATURE_NAMES]
Definition: QueryPackets.h:61
CreatureFamily
Definition: SharedDefines.h:3576
void Read() override
Definition: QueryPackets.cpp:468
Definition: Opcodes.h:528
void Read() override
Definition: QueryPackets.cpp:438
int32 MissingQuestCount
Definition: QueryPackets.h:328
ObjectGuid GUID
Definition: QueryPackets.h:180
int32 Y
Definition: QueryPackets.h:335
std::vector< DBQueryRecord > Queries
Definition: QueryPackets.h:189
Definition: Opcodes.h:1393
float Size
Definition: QueryPackets.h:236
Definition: ObjectGuid.h:189
Definition: Opcodes.h:1417
QueryTimeResponse()
Definition: QueryPackets.h:313
int32 Floor
Definition: QueryPackets.h:346
DBQueryBulk(WorldPacket &&packet)
Definition: QueryPackets.h:184
std::string IconName
Definition: QueryPackets.h:230
WorldPacket const * Write() override
Definition: QueryPackets.cpp:483
ObjectGuid ItemGUID
Definition: QueryPackets.h:128
uint32 ProxyCreatureID[MAX_KILL_CREDIT]
Definition: QueryPackets.h:58
bool Valid
Definition: QueryPackets.h:446
Type
Type of JSON value.
Definition: rapidjson.h:642
Definition: Opcodes.h:1400
Definition: Opcodes.h:526
Definition: QueryPackets.h:132
uint32 TextID
Definition: QueryPackets.h:169
uint32 DisplayID
Definition: QueryPackets.h:234
QueryCreature(WorldPacket &&packet)
Definition: QueryPackets.h:36
DeclinedName DeclinedNames
Definition: QueryPackets.h:418
std::string CastBarCaption
Definition: QueryPackets.h:231
Definition: QueryPackets.h:267
QueryCorpseLocationFromClient(WorldPacket &&packet)
Definition: QueryPackets.h:262
Definition: WorldPacket.h:26
WorldPacket const * Write() override
Definition: QueryPackets.cpp:182
QueryPlayerName(WorldPacket &&packet)
Definition: QueryPackets.h:85
int32 PlayerConditionID
Definition: QueryPackets.h:350
std::string Name
Definition: QueryPackets.h:100
bool IsDeleted
Definition: QueryPackets.h:96
uint32 RecordID
Definition: QueryPackets.h:181
Definition: Opcodes.h:934
Data
Definition: molten_core.h:69
void Read() override
Definition: QueryPackets.cpp:24
Definition: QueryPackets.h:43
uint32 CreatureDisplayID[MAX_CREATURE_MODELS]
Definition: QueryPackets.h:59
CreatureType
Definition: SharedDefines.h:3552
Definition: SharedDefines.h:95
ObjectGuid Guid
Definition: QueryPackets.h:158
void Read() override
Definition: QueryPackets.cpp:412
CorpseTransportQuery()
Definition: QueryPackets.h:294
int32 MissingQuestPOIs[50]
Definition: QueryPackets.h:329
Definition: Opcodes.h:524
int32 ActualMapID
Definition: QueryPackets.h:276
#define MAX_GAMEOBJECT_DATA
Definition: SharedDefines.h:2117