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
25enum class PlayerInteractionType : int32;
26
27namespace WorldPackets
28{
29 namespace Bank
30 {
31 class AutoBankItem final : public ClientPacket
32 {
33 public:
35
36 void Read() override;
37
39 ::BankType BankType = ::BankType::Character;
42 };
43
44 class AutoStoreBankItem final : public ClientPacket
45 {
46 public:
48
49 void Read() override;
50
54 };
55
56 class BuyBankSlot final : public ClientPacket
57 {
58 public:
60
61 void Read() override;
62
64 };
65
66 class AutoBankReagent final : public ClientPacket
67 {
68 public:
70
71 void Read() override;
72
76 };
77
79 {
80 public:
82
83 void Read() override;
84
88 };
89
90 // CMSG_BUY_REAGENT_BANK
91 // CMSG_REAGENT_BANK_DEPOSIT
92 class ReagentBank final : public ClientPacket
93 {
94 public:
95 ReagentBank(WorldPacket&& packet) : ClientPacket(std::move(packet)) { }
96
97 void Read() override;
98
100 };
101
102 class BankerActivate final : public ClientPacket
103 {
104 public:
105 explicit BankerActivate(WorldPacket&& packet) : ClientPacket(CMSG_BANKER_ACTIVATE, std::move(packet)) { }
106
107 void Read() override;
108
111 };
112 }
113}
114#endif // BankPackets_h__
PlayerInteractionType
Definition: DBCEnums.h:1928
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
BankType
Definition: ItemDefines.h:303
Definition: Bag.h:27
AutoBankItem(WorldPacket &&packet)
Definition: BankPackets.h:34
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:38
AutoBankReagent(WorldPacket &&packet)
Definition: BankPackets.h:69
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:73
AutoStoreBankItem(WorldPacket &&packet)
Definition: BankPackets.h:47
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:51
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:85
AutoStoreBankReagent(WorldPacket &&packet)
Definition: BankPackets.h:81
BankerActivate(WorldPacket &&packet)
Definition: BankPackets.h:105
PlayerInteractionType InteractionType
Definition: BankPackets.h:110
BuyBankSlot(WorldPacket &&packet)
Definition: BankPackets.h:59
ReagentBank(WorldPacket &&packet)
Definition: BankPackets.h:95
@ CMSG_AUTOSTORE_BANK_ITEM
Definition: Opcodes.h:95
@ CMSG_AUTOBANK_ITEM
Definition: Opcodes.h:93
@ CMSG_BANKER_ACTIVATE
Definition: Opcodes.h:107
@ CMSG_AUTOBANK_REAGENT
Definition: Opcodes.h:94
@ CMSG_AUTOSTORE_BANK_REAGENT
Definition: Opcodes.h:96
@ CMSG_BUY_BANK_SLOT
Definition: Opcodes.h:152
STL namespace.