TrinityCore
Loading...
Searching...
No Matches
ItemPackets.cpp
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#include "ItemPackets.h"
19
21{
27
32
39
46
54
62
64{
67 {
68 _worldPacket << Item[0];
69 _worldPacket << Item[1];
70 _worldPacket << uint8(ContainerBSlot); // bag type subclass, used with EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM and EQUIP_ERR_WRONG_BAG_TYPE_2
71
72 switch (BagResult)
73 {
77 break;
82 break;
87 break;
88 default:
89 break;
90 }
91 }
92
93 return &_worldPacket;
94}
95
104
106{
109}
110
118
124
131
138}
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
@ EQUIP_ERR_CANT_EQUIP_LEVEL_I
Definition ItemDefines.h:27
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED_IS
@ EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM
@ EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW
@ EQUIP_ERR_OK
Definition ItemDefines.h:26
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED_IS
Definition Item.h:62
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket _worldPacket
Definition Packet.h:42