TrinityCore
Loading...
Searching...
No Matches
ItemPackets.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 TRINITYCORE_ITEM_PACKETS_H
19#define TRINITYCORE_ITEM_PACKETS_H
20
21#include "ItemDefines.h"
22#include "ObjectGuid.h"
23#include "Packet.h"
24
25namespace WorldPackets
26{
27 namespace Item
28 {
30 {
31 public:
33
34 void Read() override;
35
38 };
39
41 {
42 public:
44
45 void Read() override;
46
48 };
49
51 {
52 public:
54
55 void Read() override;
56
59 bool UseGuildBank = false;
60 };
61
63 {
64 public:
66
67 void Read() override;
68
72 };
73
75 {
76 public:
78
79 WorldPacket const* Write() override;
80
83 };
84
86 {
87 public:
89
90 WorldPacket const* Write() override;
91
94 };
95
112
114 {
115 public:
117
118 void Read() override;
119
125 };
126
128 {
129 public:
131
132 void Read() override;
133
136 };
137
139 {
140 public:
142
143 void Read() override;
144
149 };
150
152 {
153 public:
155
156 void Read() override;
157
160 };
161
163 {
164 public:
166
167 void Read() override;
168
172 };
173
175 {
176 public:
178
179 void Read() override;
180
184 };
185 }
186}
187
188#endif // TRINITYCORE_ITEM_PACKETS_H
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
@ EQUIP_ERR_OK
Definition ItemDefines.h:26
Definition Item.h:62
AutoEquipItem(WorldPacket &&packet)
AutoStoreBagItem(WorldPacket &&packet)
BuyBackItem(WorldPacket &&packet)
Definition ItemPackets.h:32
DestroyItem(WorldPacket &&packet)
GetItemPurchaseData(WorldPacket &&packet)
Definition ItemPackets.h:43
WorldPacket const * Write() override
WorldPacket const * Write() override
RepairItem(WorldPacket &&packet)
Definition ItemPackets.h:53
SellItem(WorldPacket &&packet)
Definition ItemPackets.h:65
WorldPacket const * Write() override
SplitItem(WorldPacket &&packet)
SwapInvItem(WorldPacket &&packet)
SwapItem(WorldPacket &&packet)
@ CMSG_REPAIR_ITEM
Definition Opcodes.h:709
@ CMSG_AUTOSTORE_BAG_ITEM
Definition Opcodes.h:296
@ CMSG_ITEM_REFUND_INFO
Definition Opcodes.h:1232
@ SMSG_SET_PROFICIENCY
Definition Opcodes.h:324
@ CMSG_SPLIT_ITEM
Definition Opcodes.h:299
@ SMSG_INVENTORY_CHANGE_FAILURE
Definition Opcodes.h:303
@ SMSG_ITEM_TIME_UPDATE
Definition Opcodes.h:519
@ CMSG_SWAP_INV_ITEM
Definition Opcodes.h:298
@ CMSG_SWAP_ITEM
Definition Opcodes.h:297
@ CMSG_AUTOEQUIP_ITEM
Definition Opcodes.h:295
@ CMSG_DESTROYITEM
Definition Opcodes.h:302
@ CMSG_BUYBACK_ITEM
Definition Opcodes.h:685
@ CMSG_SELL_ITEM
Definition Opcodes.h:445
STL namespace.