TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_BANK_PACKETS_H
19#define TRINITYCORE_BANK_PACKETS_H
20
21#include "Packet.h"
22#include "ItemPacketsCommon.h"
23#include "ObjectGuid.h"
24
25enum class BagSlotFlags : uint32;
26enum class PlayerInteractionType : int32;
27
28namespace WorldPackets
29{
30 namespace Bank
31 {
32 class AutoBankItem final : public ClientPacket
33 {
34 public:
35 explicit AutoBankItem(WorldPacket&& packet) : ClientPacket(CMSG_AUTOBANK_ITEM, std::move(packet)) { }
36
37 void Read() override;
38
43 };
44
45 class AutoStoreBankItem final : public ClientPacket
46 {
47 public:
49
50 void Read() override;
51
55 };
56
57 class BuyBankTab final : public ClientPacket
58 {
59 public:
60 explicit BuyBankTab(WorldPacket&& packet) : ClientPacket(CMSG_BUY_ACCOUNT_BANK_TAB, std::move(packet)) { }
61
62 void Read() override;
63
66 };
67
69 {
70 public:
72
73 void Read() override;
74
76 };
77
78 class BankerActivate final : public ClientPacket
79 {
80 public:
81 explicit BankerActivate(WorldPacket&& packet) : ClientPacket(CMSG_BANKER_ACTIVATE, std::move(packet)) { }
82
83 void Read() override;
84
87 };
88
90 {
91 std::string Name;
92 std::string Icon;
93 std::string Description;
95 };
96
109 }
110}
111
112#endif // TRINITYCORE_BANK_PACKETS_H
PlayerInteractionType
Definition DBCEnums.h:2211
uint8_t uint8
Definition Define.h:156
int32_t int32
Definition Define.h:150
uint32_t uint32
Definition Define.h:154
BankType
@ CMSG_AUTO_DEPOSIT_CHARACTER_BANK
Definition Opcodes.h:91
@ CMSG_UPDATE_ACCOUNT_BANK_TAB_SETTINGS
Definition Opcodes.h:1015
@ CMSG_AUTOSTORE_BANK_ITEM
Definition Opcodes.h:89
@ CMSG_AUTOBANK_ITEM
Definition Opcodes.h:88
@ CMSG_BANKER_ACTIVATE
Definition Opcodes.h:101
@ CMSG_BUY_ACCOUNT_BANK_TAB
Definition Opcodes.h:145
BagSlotFlags
Definition Player.h:864
Definition Bag.h:27
AutoBankItem(WorldPacket &&packet)
Definition BankPackets.h:35
WorldPackets::Item::InvUpdate Inv
Definition BankPackets.h:39
AutoStoreBankItem(WorldPacket &&packet)
Definition BankPackets.h:48
WorldPackets::Item::InvUpdate Inv
Definition BankPackets.h:52
BankerActivate(WorldPacket &&packet)
Definition BankPackets.h:81
PlayerInteractionType InteractionType
Definition BankPackets.h:86
BuyBankTab(WorldPacket &&packet)
Definition BankPackets.h:60
UpdateBankTabSettings(WorldPacket &&packet)
STL namespace.