TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BankPackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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 "ItemPackets.h"
22 #include "Packet.h"
23 #include "ObjectGuid.h"
24 #include "WorldSession.h"
25 
26 namespace WorldPackets
27 {
28  namespace Bank
29  {
30  class AutoBankItem final : public ClientPacket
31  {
32  public:
34 
35  void Read() override;
36 
38  uint8 Bag = 0;
39  uint8 Slot = 0;
40  };
41 
42  class AutoStoreBankItem final : public ClientPacket
43  {
44  public:
46 
47  void Read() override;
48 
50  uint8 Bag = 0;
51  uint8 Slot = 0;
52  };
53 
54  class BuyBankSlot final : public ClientPacket
55  {
56  public:
57  BuyBankSlot(WorldPacket&& packet) : ClientPacket(CMSG_BUY_BANK_SLOT, std::move(packet)) { }
58 
59  void Read() override;
60 
62  };
63  }
64 }
65 #endif // BankPackets_h__
Definition: BankPackets.h:30
AutoBankItem(WorldPacket &&packet)
Definition: BankPackets.h:33
void Read() override
Definition: BankPackets.cpp:35
STL namespace.
Definition: BankPackets.h:42
Definition: Opcodes.h:75
Definition: Opcodes.h:121
Definition: Packet.h:59
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:37
Definition: Bag.h:28
WorldPackets::Item::InvUpdate Inv
Definition: BankPackets.h:49
Definition: BankPackets.h:54
Definition: Opcodes.h:77
Definition: BattlegroundMgr.h:57
uint8 Slot
Definition: BankPackets.h:51
AutoStoreBankItem(WorldPacket &&packet)
Definition: BankPackets.h:45
void Read() override
Definition: BankPackets.cpp:28
BuyBankSlot(WorldPacket &&packet)
Definition: BankPackets.h:57
uint8_t uint8
Definition: Define.h:152
ObjectGuid Guid
Definition: BankPackets.h:61
Definition: ObjectGuid.h:189
void Read() override
Definition: BankPackets.cpp:21
Definition: ItemPackets.h:228
Definition: WorldPacket.h:26
uint8 Slot
Definition: BankPackets.h:39