TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VoidStoragePackets.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 VoidStoragePackets_h__
19 #define VoidStoragePackets_h__
20 
21 #include "Packet.h"
22 #include "ItemPackets.h"
23 
24 namespace WorldPackets
25 {
26  namespace VoidStorage
27  {
28  class VoidTransferResult final : public ServerPacket
29  {
30  public:
32 
33  WorldPacket const* Write() override;
34 
36  };
37 
38  class UnlockVoidStorage final : public ClientPacket
39  {
40  public:
42 
43  void Read() override;
44 
46  };
47 
48  class QueryVoidStorage final : public ClientPacket
49  {
50  public:
52 
53  void Read() override;
54 
56  };
57 
58  class VoidStorageFailed final : public ServerPacket
59  {
60  public:
62 
63  WorldPacket const* Write() override;
64 
66  };
67 
68  struct VoidItem
69  {
72  uint32 Slot = 0;
74  };
75 
76  class VoidStorageContents final : public ServerPacket
77  {
78  public:
80 
81  WorldPacket const* Write() override;
82 
83  std::vector<VoidItem> Items;
84  };
85 
86  class VoidStorageTransfer final : public ClientPacket
87  {
88  public:
90 
91  void Read() override;
92 
96  };
97 
99  {
100  public:
102 
103  WorldPacket const* Write() override;
104 
105  std::vector<ObjectGuid> RemovedItems;
106  std::vector<VoidItem> AddedItems;
107  };
108 
109  class SwapVoidItem final : public ClientPacket
110  {
111  public:
113 
114  void Read() override;
115 
119  };
120 
121  class VoidItemSwapResponse final : public ServerPacket
122  {
123  public:
125 
126  WorldPacket const* Write() override;
127 
132  };
133  }
134 }
135 
136 #endif // VoidStoragePackets_h__
VoidStorageContents()
Definition: VoidStoragePackets.h:79
WorldPacket const * Write() override
Definition: VoidStoragePackets.cpp:52
WorldPackets::Item::ItemInstance Item
Definition: VoidStoragePackets.h:73
ObjectGuid Creator
Definition: VoidStoragePackets.h:71
WorldPacket const * Write() override
Definition: VoidStoragePackets.cpp:102
ObjectGuid Npc
Definition: VoidStoragePackets.h:45
uint32 Slot
Definition: VoidStoragePackets.h:72
uint32 VoidItemSlotA
Definition: VoidStoragePackets.h:130
Definition: VoidStoragePackets.h:86
VoidItemSwapResponse()
Definition: VoidStoragePackets.h:124
std::vector< ObjectGuid > RemovedItems
Definition: VoidStoragePackets.h:105
Definition: Opcodes.h:1620
Array< ObjectGuid, VOID_STORAGE_MAX_DEPOSIT > Deposits
Definition: VoidStoragePackets.h:94
WorldPacket const * Write() override
Definition: VoidStoragePackets.cpp:21
uint32 VoidItemSlotB
Definition: VoidStoragePackets.h:131
VoidStorageFailed()
Definition: VoidStoragePackets.h:61
Definition: Opcodes.h:1618
STL namespace.
Definition: Opcodes.h:668
WorldPacket const * Write() override
Definition: VoidStoragePackets.cpp:37
Definition: VoidStoragePackets.h:28
VoidStorageTransferChanges()
Definition: VoidStoragePackets.h:101
VoidStorageTransfer(WorldPacket &&packet)
Definition: VoidStoragePackets.h:89
WorldPacket const * Write() override
Definition: VoidStoragePackets.cpp:78
Definition: Opcodes.h:533
ObjectGuid VoidItemB
Definition: VoidStoragePackets.h:129
void Read() override
Definition: VoidStoragePackets.cpp:27
Definition: Packet.h:59
std::vector< VoidItem > AddedItems
Definition: VoidStoragePackets.h:106
std::vector< VoidItem > Items
Definition: VoidStoragePackets.h:83
ObjectGuid Guid
Definition: VoidStoragePackets.h:70
void Read() override
Definition: VoidStoragePackets.cpp:95
VoidTransferResult(int32 result)
Definition: VoidStoragePackets.h:31
Definition: Packet.h:46
uint32 DstSlot
Definition: VoidStoragePackets.h:118
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
ObjectGuid Npc
Definition: VoidStoragePackets.h:55
Definition: Opcodes.h:1619
SwapVoidItem(WorldPacket &&packet)
Definition: VoidStoragePackets.h:112
Definition: BattlegroundMgr.h:57
Definition: Opcodes.h:1617
Definition: Opcodes.h:697
uint8 Reason
Definition: VoidStoragePackets.h:65
ObjectGuid VoidItemGuid
Definition: VoidStoragePackets.h:117
UnlockVoidStorage(WorldPacket &&packet)
Definition: VoidStoragePackets.h:41
Definition: VoidStoragePackets.h:68
Definition: VoidStoragePackets.h:121
uint8_t uint8
Definition: Define.h:152
Definition: Opcodes.h:1616
Definition: VoidStoragePackets.h:38
Definition: VoidStoragePackets.h:48
QueryVoidStorage(WorldPacket &&packet)
Definition: VoidStoragePackets.h:51
ObjectGuid VoidItemA
Definition: VoidStoragePackets.h:128
Definition: ItemPackets.h:40
Definition: Opcodes.h:716
ObjectGuid Npc
Definition: VoidStoragePackets.h:116
Definition: ObjectGuid.h:189
Definition: VoidStoragePackets.h:76
Definition: VoidStoragePackets.h:109
void Read() override
Definition: VoidStoragePackets.cpp:32
int32 Result
Definition: VoidStoragePackets.h:35
Definition: WorldPacket.h:26
Definition: VoidStoragePackets.h:58
void Read() override
Definition: VoidStoragePackets.cpp:65
Array< ObjectGuid, VOID_STORAGE_MAX_WITHDRAW > Withdrawals
Definition: VoidStoragePackets.h:93
ObjectGuid Npc
Definition: VoidStoragePackets.h:95