TrinityCore
BlackMarketPackets.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 BlackMarketPackets_h__
19#define BlackMarketPackets_h__
20
21#include "Packet.h"
22#include "ItemPacketsCommon.h"
23#include "ObjectGuid.h"
24
25namespace WorldPackets
26{
27 namespace BlackMarket
28 {
30 {
40 bool HighBid = false;
41 };
42
43 class BlackMarketOpen final : public ClientPacket
44 {
45 public:
47
48 void Read() override;
49
51 };
52
54 {
55 public:
57
58 void Read() override;
59
62 };
63
65 {
66 public:
68
69 WorldPacket const* Write() override;
70
72 std::vector<BlackMarketItem> Items;
73 };
74
76 {
77 public:
79
80 void Read() override;
81
86 };
87
89 {
90 public:
92
93 WorldPacket const* Write() override;
94
98 };
99
100 class BlackMarketOutbid final : public ServerPacket
101 {
102 public:
104
105 WorldPacket const* Write() override;
106
110 };
111
112 class BlackMarketWon final : public ServerPacket
113 {
114 public:
116
117 WorldPacket const* Write() override;
118
122 };
123 }
124}
125
126#endif // BlackMarketPackets_h__
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
@ CMSG_BLACK_MARKET_REQUEST_ITEMS
Definition: Opcodes.h:146
@ CMSG_BLACK_MARKET_OPEN
Definition: Opcodes.h:145
@ CMSG_BLACK_MARKET_BID_ON_ITEM
Definition: Opcodes.h:144
@ SMSG_BLACK_MARKET_BID_ON_ITEM_RESULT
Definition: Opcodes.h:1036
@ SMSG_BLACK_MARKET_REQUEST_ITEMS_RESULT
Definition: Opcodes.h:1038
@ SMSG_BLACK_MARKET_WON
Definition: Opcodes.h:1039
@ SMSG_BLACK_MARKET_OUTBID
Definition: Opcodes.h:1037
STL namespace.