TrinityCore
BankPackets.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 BankPackets_h__
19#define BankPackets_h__
20
21#include "Packet.h"
22#include "ItemPacketsCommon.h"
23#include "ObjectGuid.h"
24
25namespace WorldPackets
26{
27 namespace Bank
28 {
29 class AutoBankItem final : public ClientPacket
30 {
31 public:
33
34 void Read() override;
35
39 };
40
41 class AutoStoreBankItem final : public ClientPacket
42 {
43 public:
45
46 void Read() override;
47
51 };
52
53 class BuyBankSlot final : public ClientPacket
54 {
55 public:
57
58 void Read() override;
59
61 };
62
63 class AutoBankReagent final : public ClientPacket
64 {
65 public:
67
68 void Read() override;
69
73 };
74
76 {
77 public:
79
80 void Read() override;
81
85 };
86
87 // CMSG_BUY_REAGENT_BANK
88 // CMSG_REAGENT_BANK_DEPOSIT
89 class ReagentBank final : public ClientPacket
90 {
91 public:
92 ReagentBank(WorldPacket&& packet) : ClientPacket(std::move(packet)) { }
93
94 void Read() override;
95
97 };
98 }
99}
100#endif // BankPackets_h__
uint8_t uint8
Definition: Define.h:144
Definition: Bag.h:27
AutoBankItem(WorldPacket &&packet)
Definition: BankPackets.h:32
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:36
AutoBankReagent(WorldPacket &&packet)
Definition: BankPackets.h:66
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:70
AutoStoreBankItem(WorldPacket &&packet)
Definition: BankPackets.h:44
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:48
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:82
AutoStoreBankReagent(WorldPacket &&packet)
Definition: BankPackets.h:78
BuyBankSlot(WorldPacket &&packet)
Definition: BankPackets.h:56
ReagentBank(WorldPacket &&packet)
Definition: BankPackets.h:92
@ CMSG_AUTOSTORE_BANK_ITEM
Definition: Opcodes.h:97
@ CMSG_AUTOBANK_ITEM
Definition: Opcodes.h:95
@ CMSG_AUTOBANK_REAGENT
Definition: Opcodes.h:96
@ CMSG_AUTOSTORE_BANK_REAGENT
Definition: Opcodes.h:98
@ CMSG_BUY_BANK_SLOT
Definition: Opcodes.h:151
STL namespace.