18 #ifndef ItemPackets_h__
19 #define ItemPackets_h__
25 struct VoidStorageItem;
44 void Initialize(::VoidStorageItem
const* voidItem);
113 void Read()
override;
155 void Read()
override;
187 void Read()
override;
199 void Read()
override;
261 void Read()
override;
276 void Read()
override;
288 void Read()
override;
302 void Read()
override;
314 void Read()
override;
326 void Read()
override;
339 void Read()
override;
398 void Read()
override;
431 void Read()
override;
441 void Read()
override;
489 void Read()
override;
500 void Read()
override;
510 void Read()
override;
537 #endif // ItemPackets_h__
Definition: ItemPackets.h:484
Definition: ItemPackets.h:516
uint32 Slot
Definition: ItemPackets.h:468
Definition: Opcodes.h:1152
ObjectGuid SrcContainer
Definition: ItemPackets.h:248
int32 Quantity
Definition: ItemPackets.h:79
InvUpdate Inv
Definition: ItemPackets.h:267
Optional< CompactArray< int32 > > Modifications
Definition: ItemPackets.h:50
Definition: ItemPackets.h:194
#define MAX_GEM_SOCKETS
Definition: Item.h:195
bool Created
Definition: ItemPackets.h:388
BuyBackItem(WorldPacket &&packet)
Definition: ItemPackets.h:59
ByteBuffer & operator>>(ByteBuffer &data, WorldPackets::Item::ItemBonusInstanceData &itemBonusInstanceData)
ObjectGuid ItemGuid
Definition: ItemPackets.h:502
ObjectGuid NpcGUID
Definition: ItemPackets.h:189
uint32 DurationLeft
Definition: ItemPackets.h:214
uint8 PackSlot
Definition: ItemPackets.h:400
Definition: Opcodes.h:1435
ObjectGuid ItemGUID
Definition: ItemPackets.h:115
ObjectGuid VendorGUID
Definition: ItemPackets.h:90
uint8 FromSlot
Definition: ItemPackets.h:268
WorldPacket const * Write() override
Definition: ItemPackets.cpp:480
SellResult
Definition: Item.h:161
Definition: ByteBuffer.h:70
Definition: ItemPackets.h:56
int8_t int8
Definition: Define.h:148
uint32 DungeonEncounterID
Definition: ItemPackets.h:380
WrapItem(WorldPacket &&packet)
Definition: ItemPackets.h:429
Definition: ItemPackets.h:160
Definition: ItemPackets.h:309
ObjectGuid ItemGuid
Definition: ItemPackets.h:512
uint32 Amount
Definition: ItemPackets.h:203
uint8 Result
Definition: ItemPackets.h:167
void Read() override
Definition: ItemPackets.cpp:69
uint32 Cooldown
Definition: ItemPackets.h:455
bool operator!=(ItemInstance const &r) const
Definition: ItemPackets.h:53
DestroyItem(WorldPacket &&packet)
Definition: ItemPackets.h:337
int32 BattlePetBreedID
Definition: ItemPackets.h:381
uint32 SpellID
Definition: ItemPackets.h:454
WorldPacket const * Write() override
Definition: ItemPackets.cpp:452
ObjectGuid VendorGUID
Definition: ItemPackets.h:353
uint32 ProficiencyMask
Definition: ItemPackets.h:224
int32 BattlePetLevel
Definition: ItemPackets.h:384
WorldPacket const * Write() override
Definition: ItemPackets.cpp:50
Definition: ItemPackets.h:364
int32 SlotInBag
Definition: ItemPackets.h:374
Definition: ItemPackets.h:458
int32 Quantity
Definition: ItemPackets.h:266
WorldPacket const * Write() override
Definition: ItemPackets.cpp:406
uint8 Slot1
Definition: ItemPackets.h:279
ObjectGuid GemItem[MAX_GEM_SOCKETS]
Definition: ItemPackets.h:513
Definition: ItemPackets.h:230
DisplayType
Definition: ItemPackets.h:361
int32 Sockets[MAX_GEM_SOCKETS]
Definition: ItemPackets.h:524
Definition: Opcodes.h:1148
Definition: ItemPackets.h:393
ReadItem(WorldPacket &&packet)
Definition: ItemPackets.h:396
BuyResult
Definition: Item.h:148
ItemEnchantTimeUpdate()
Definition: ItemPackets.h:461
ItemPurchaseRefund(WorldPacket &&packet)
Definition: ItemPackets.h:153
ObjectGuid Item
Definition: ItemPackets.h:411
uint8 Slot
Definition: ItemPackets.h:233
ObjectGuid ContainerGUID
Definition: ItemPackets.h:80
Definition: Opcodes.h:666
void Read() override
Definition: ItemPackets.cpp:399
WorldPacket const * Write() override
Definition: ItemPackets.cpp:539
int32 CurrencyID
Definition: ItemPackets.h:126
Definition: ItemPackets.h:471
Definition: ItemPackets.h:416
Optional< ItemPurchaseContents > Contents
Definition: ItemPackets.h:169
Definition: ItemTemplate.h:291
bool operator!=(ItemBonusInstanceData const &r) const
Definition: ItemPackets.h:37
BuyItem(WorldPacket &&packet)
Definition: ItemPackets.h:70
void Read() override
Definition: ItemPackets.cpp:368
GetItemPurchaseData(WorldPacket &&packet)
Definition: ItemPackets.h:111
Definition: ItemPackets.h:365
ObjectGuid VendorGUID
Definition: ItemPackets.h:103
Definition: Opcodes.h:665
void Read() override
Definition: ItemPackets.cpp:136
void Read() override
Definition: ItemPackets.cpp:519
Definition: Opcodes.h:841
uint8 ContainerBSlot
Definition: ItemPackets.h:247
SellResponse()
Definition: ItemPackets.h:349
ByteBuffer & operator>>(ByteBuffer &data, InvUpdate &invUpdate)
Definition: ItemPackets.cpp:236
BuySucceeded()
Definition: ItemPackets.h:86
ReadItemResultFailed()
Definition: ItemPackets.h:407
ObjectGuid ItemGUID
Definition: ItemPackets.h:179
InvUpdate Inv
Definition: ItemPackets.h:329
SplitItem(WorldPacket &&packet)
Definition: ItemPackets.h:259
Definition: ItemPackets.h:150
InvUpdate Inv
Definition: ItemPackets.h:305
Definition: Opcodes.h:1505
Definition: Opcodes.h:708
WorldPacket const * Write() override
Definition: ItemPackets.cpp:463
int32 ItemCount
Definition: ItemPackets.h:121
ItemTimeUpdate()
Definition: ItemPackets.h:209
ObjectGuid ItemGUID
Definition: ItemPackets.h:354
uint32 Slot
Definition: ItemPackets.h:476
ObjectGuid OwnerGuid
Definition: ItemPackets.h:465
Definition: ItemPackets.h:426
Definition: Opcodes.h:122
uint32 RandomPropertiesSeed
Definition: ItemPackets.h:47
ItemVendorType ItemType
Definition: ItemPackets.h:78
void Read() override
Definition: ItemPackets.cpp:361
Definition: ItemPackets.h:182
WorldPacket const * Write() override
Definition: ItemPackets.cpp:129
uint32 Flags
Definition: ItemPackets.h:145
int32 ItemID
Definition: ItemPackets.h:120
ByteBuffer & operator<<(ByteBuffer &data, WorldPackets::Item::ItemBonusInstanceData const &itemBonusInstanceData)
Definition: ItemPackets.cpp:166
int32 SocketMatch
Definition: ItemPackets.h:525
uint8 Slot
Definition: ItemPackets.h:373
Optional< ObjectGuid > SrcItemGUID
Definition: ItemPackets.h:473
ObjectGuid ItemGUID
Definition: ItemPackets.h:168
WorldPacket const * Write() override
Definition: ItemPackets.cpp:489
uint8 Slot
Definition: ItemPackets.h:304
uint8 ProficiencyClass
Definition: ItemPackets.h:225
TransmogrifyItems(WorldPacket &&packet)
Definition: ItemPackets.h:487
Optional< ObjectGuid > SrcVoidItemGUID
Definition: ItemPackets.h:474
Definition: ItemPackets.h:217
uint32 PurchaseTime
Definition: ItemPackets.h:144
Definition: ItemPackets.h:31
void Read() override
Definition: ItemPackets.cpp:112
WorldPacket const * Write() override
Definition: ItemPackets.cpp:102
Definition: ItemPackets.h:172
uint32 RandomPropertiesID
Definition: ItemPackets.h:48
ItemInstance Item
Definition: ItemPackets.h:75
uint8 ToSlot
Definition: ItemPackets.h:263
uint8 Slot2
Source Slot.
Definition: ItemPackets.h:280
Definition: Opcodes.h:1145
uint8 PackSlot
Definition: ItemPackets.h:306
bool operator==(ItemInstance const &r) const
Definition: ItemPackets.cpp:304
Definition: ItemPackets.h:239
Definition: Opcodes.h:655
BuyResult Reason
Definition: ItemPackets.h:105
Definition: Opcodes.h:1524
CancelTempEnchantment(WorldPacket &&packet)
Definition: ItemPackets.h:439
bool operator==(ItemBonusInstanceData const &r) const
Definition: ItemPackets.cpp:21
ItemVendorType
Definition: ItemTemplate.h:289
void Read() override
Definition: ItemPackets.cpp:391
uint8 ItemDstSlot
Definition: ItemPackets.h:317
uint8 SlotA
Definition: ItemPackets.h:291
ObjectGuid ItemGuid
Definition: ItemPackets.h:466
void Read() override
Definition: ItemPackets.cpp:532
std::vector< int32 > BonusListIDs
Definition: ItemPackets.h:34
ItemInstance Item
Definition: ItemPackets.h:475
int32 Level
Definition: ItemPackets.h:252
uint32 BattlePetBreedQuality
Definition: ItemPackets.h:382
Definition: Opcodes.h:151
int32 NewQuantity
Definition: ItemPackets.h:93
uint8 ContainerSlotA
Definition: ItemPackets.h:294
WorldPacket const * Write() override
Definition: ItemPackets.cpp:117
AutoStoreBagItem(WorldPacket &&packet)
Definition: ItemPackets.h:324
ObjectGuid ItemGUID
Definition: ItemPackets.h:190
Definition: Opcodes.h:356
ObjectGuid ItemGUID
Definition: ItemPackets.h:202
ObjectGuid VendorGUID
Definition: ItemPackets.h:201
Definition: Opcodes.h:1436
Definition: ItemPackets.h:67
uint8 ContainerSlot
Definition: ItemPackets.h:232
uint32 DurationLeft
Definition: ItemPackets.h:467
uint8 Subcode
Definition: ItemPackets.h:412
ObjectGuid Item
Definition: ItemPackets.h:423
uint32 Slot
Definition: ItemPackets.h:77
Optional< ItemBonusInstanceData > ItemBonus
Definition: ItemPackets.h:49
ItemExpirePurchaseRefund()
Definition: ItemPackets.h:175
Definition: ItemPackets.h:505
uint32 QuantityBought
Definition: ItemPackets.h:92
uint8 SlotNum
Definition: ItemPackets.h:342
int32 QuantityInInventory
Definition: ItemPackets.h:379
Definition: Opcodes.h:649
Definition: Opcodes.h:1150
SellItem(WorldPacket &&packet)
Definition: ItemPackets.h:197
int32_t int32
Definition: Define.h:146
Definition: ItemPackets.h:363
uint32_t uint32
Definition: Define.h:150
WorldPacket const * Write() override
Definition: ItemPackets.cpp:321
ItemCooldown()
Definition: ItemPackets.h:449
ObjectGuid PlayerGUID
Definition: ItemPackets.h:372
uint8 SlotB
Definition: ItemPackets.h:293
Definition: ItemPackets.h:118
ObjectGuid Item
Definition: ItemPackets.h:316
InvUpdate Inv
Definition: ItemPackets.h:290
Definition: ItemPackets.h:256
Definition: ItemPackets.h:206
bool Pushed
Definition: ItemPackets.h:386
ItemPurchaseContents Contents
Definition: ItemPackets.h:146
Definition: ItemPackets.h:479
BuyFailed()
Definition: ItemPackets.h:99
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
ObjectGuid VendorGUID
Definition: ItemPackets.h:63
Definition: ItemPackets.h:124
uint8 ContainerSlotB
Definition: ItemPackets.h:292
AutoEquipItemSlot(WorldPacket &&packet)
Definition: ItemPackets.h:312
int32 Slot
Definition: ItemPackets.h:443
void Read() override
Definition: ItemPackets.cpp:475
std::vector< InvItem > Items
Definition: ItemPackets.h:236
Definition: Opcodes.h:1153
InvUpdate Inv
Definition: ItemPackets.h:433
InvUpdate Inv
Definition: ItemPackets.h:318
int8 BagResult
Definition: ItemPackets.h:246
SocketGems(WorldPacket &&packet)
Definition: ItemPackets.h:508
uint8 ToPackSlot
Definition: ItemPackets.h:264
SellResult Reason
Definition: ItemPackets.h:355
int32 LimitCategory
Definition: ItemPackets.h:251
int32 SrcSlot
Definition: ItemPackets.h:250
ObjectGuid ItemGuid
Definition: ItemPackets.h:453
Definition: BattlegroundMgr.h:57
Definition: LootMgr.h:157
uint32 QuestLogItemID
Definition: ItemPackets.h:376
Definition: ItemPackets.h:446
Definition: Opcodes.h:1151
Definition: ItemPackets.h:346
void Read() override
Definition: ItemPackets.cpp:446
Definition: Opcodes.h:1514
ObjectGuid ItemGUID
Definition: ItemPackets.h:147
ItemPurchaseRefundCurrency Currencies[5]
Definition: ItemPackets.h:134
Definition: Opcodes.h:1480
RepairItem(WorldPacket &&packet)
Definition: ItemPackets.h:185
Definition: ItemPackets.h:271
InventoryChangeFailure()
Definition: ItemPackets.h:242
bool UseGuildBank
Definition: ItemPackets.h:191
InvUpdate Inv
Definition: ItemPackets.h:278
uint32 Money
Definition: ItemPackets.h:132
SocketGemsResult()
Definition: ItemPackets.h:519
SetProficiency()
Definition: ItemPackets.h:220
AutoEquipItem(WorldPacket &&packet)
Definition: ItemPackets.h:300
ItemInstance Item
Definition: ItemPackets.h:375
void Read() override
Definition: ItemPackets.cpp:38
Definition: Opcodes.h:555
int32 Quantity
Definition: ItemPackets.h:378
void Read() override
Definition: ItemPackets.cpp:377
SetItemPurchaseData()
Definition: ItemPackets.h:140
Definition: ItemPackets.h:495
ItemPushResult()
Definition: ItemPackets.h:368
uint8 Slot
Definition: ItemPackets.h:401
ReadItemResultOK()
Definition: ItemPackets.h:419
ObjectGuid Npc
Definition: ItemPackets.h:491
uint8 Context
Definition: ItemPackets.h:33
ItemPurchaseRefundItem Items[5]
Definition: ItemPackets.h:133
Definition: ItemPackets.h:283
Definition: Opcodes.h:685
void Initialize(::Item const *item)
Definition: ItemPackets.cpp:248
WorldPacket const * Write() override
Definition: ItemPackets.cpp:60
Definition: ItemPackets.h:130
void Read() override
Definition: ItemPackets.cpp:351
DisplayType DisplayText
Definition: ItemPackets.h:387
Definition: ItemPackets.h:96
uint8_t uint8
Definition: Define.h:152
Array< TransmogrifyItem, MAX_TRANSMOGRIFY_ITEMS > Items
Definition: ItemPackets.h:492
ObjectGuid VendorGUID
Definition: ItemPackets.h:74
ObjectGuid ItemGUID
Definition: ItemPackets.h:385
void Read() override
Definition: ItemPackets.cpp:384
ItemPurchaseRefundResult()
Definition: ItemPackets.h:163
Definition: ItemPackets.h:297
Definition: Opcodes.h:595
uint32 Count
Definition: ItemPackets.h:341
ObjectGuid ItemGuid
Definition: ItemPackets.h:213
Definition: ItemPackets.h:40
WorldPacket const * Write() override
Definition: ItemPackets.cpp:158
Definition: ItemPackets.h:436
Definition: ObjectGuid.h:189
uint32 Slot
Definition: ItemPackets.h:64
uint8 FromPackSlot
Definition: ItemPackets.h:265
SwapItem(WorldPacket &&packet)
Definition: ItemPackets.h:286
Definition: Opcodes.h:292
ObjectGuid Item
Definition: ItemPackets.h:523
Definition: ItemPackets.h:137
ObjectGuid ItemGUID
Definition: ItemPackets.h:157
Definition: ItemPackets.h:404
uint32 Muid
Definition: ItemPackets.h:76
uint8 ContainerSlotB
Definition: ItemPackets.h:328
Definition: Opcodes.h:1149
Definition: Opcodes.h:120
uint32 Muid
Definition: ItemPackets.h:104
bool IsBonusRoll
Definition: ItemPackets.h:389
void Read() override
Definition: ItemPackets.cpp:32
SwapInvItem(WorldPacket &&packet)
Definition: ItemPackets.h:274
uint8 ContainerId
Definition: ItemPackets.h:343
Definition: ItemPackets.h:83
Definition: ItemPackets.h:228
Definition: Opcodes.h:549
void Read() override
Definition: ItemPackets.cpp:470
bool IsEncounterLoot
Definition: ItemPackets.h:390
void Read() override
Definition: ItemPackets.cpp:527
int32 CurrencyCount
Definition: ItemPackets.h:127
Definition: Opcodes.h:842
uint32 Delay
Definition: ItemPackets.h:413
UseCritterItem(WorldPacket &&packet)
Definition: ItemPackets.h:498
Definition: Opcodes.h:240
Definition: Opcodes.h:722
Definition: WorldPacket.h:26
Definition: ItemPackets.h:321
uint8 SlotA
Definition: ItemPackets.h:331
uint32 Muid
Definition: ItemPackets.h:91
void Read() override
Definition: ItemPackets.cpp:143
uint32 ItemID
Definition: ItemPackets.h:46
uint8 ContainerSlotA
Definition: ItemPackets.h:330
int32 BattlePetSpeciesID
Definition: ItemPackets.h:383
Definition: ItemPackets.h:334
WorldPacket const * Write() override
Definition: ItemPackets.cpp:150
Definition: PacketUtilities.h:68
WorldPacket const * Write() override
Definition: ItemPackets.cpp:415
ObjectGuid DstContainer
Definition: ItemPackets.h:249
Definition: ItemPackets.h:358
Definition: ItemPackets.h:108