TrinityCore
VoidStoragePackets.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 VoidStoragePackets_h__
19#define VoidStoragePackets_h__
20
21#include "Packet.h"
22#include "ItemPacketsCommon.h"
23#include "ObjectGuid.h"
24#include "SharedDefines.h"
25
26namespace WorldPackets
27{
28 namespace VoidStorage
29 {
30 class VoidTransferResult final : public ServerPacket
31 {
32 public:
34
35 WorldPacket const* Write() override;
36
38 };
39
40 class UnlockVoidStorage final : public ClientPacket
41 {
42 public:
44
45 void Read() override;
46
48 };
49
50 class QueryVoidStorage final : public ClientPacket
51 {
52 public:
54
55 void Read() override;
56
58 };
59
60 class VoidStorageFailed final : public ServerPacket
61 {
62 public:
64
65 WorldPacket const* Write() override;
66
68 };
69
70 struct VoidItem
71 {
76 };
77
78 class VoidStorageContents final : public ServerPacket
79 {
80 public:
82
83 WorldPacket const* Write() override;
84
85 std::vector<VoidItem> Items;
86 };
87
88 class VoidStorageTransfer final : public ClientPacket
89 {
90 public:
92
93 void Read() override;
94
98 };
99
101 {
102 public:
104
105 WorldPacket const* Write() override;
106
107 std::vector<ObjectGuid> RemovedItems;
108 std::vector<VoidItem> AddedItems;
109 };
110
111 class SwapVoidItem final : public ClientPacket
112 {
113 public:
115
116 void Read() override;
117
121 };
122
124 {
125 public:
127
128 WorldPacket const* Write() override;
129
134 };
135 }
136}
137
138#endif // VoidStoragePackets_h__
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint32_t uint32
Definition: Define.h:142
Array< ObjectGuid, VOID_STORAGE_MAX_DEPOSIT > Deposits
Array< ObjectGuid, VOID_STORAGE_MAX_WITHDRAW > Withdrawals
@ CMSG_SWAP_VOID_ITEM
Definition: Opcodes.h:841
@ CMSG_QUERY_VOID_STORAGE
Definition: Opcodes.h:661
@ CMSG_UNLOCK_VOID_STORAGE
Definition: Opcodes.h:868
@ CMSG_VOID_STORAGE_TRANSFER
Definition: Opcodes.h:892
@ SMSG_VOID_TRANSFER_RESULT
Definition: Opcodes.h:2060
@ SMSG_VOID_STORAGE_TRANSFER_CHANGES
Definition: Opcodes.h:2059
@ SMSG_VOID_STORAGE_CONTENTS
Definition: Opcodes.h:2057
@ SMSG_VOID_ITEM_SWAP_RESPONSE
Definition: Opcodes.h:2056
@ SMSG_VOID_STORAGE_FAILED
Definition: Opcodes.h:2058
STL namespace.
WorldPackets::Item::ItemInstance Item