TrinityCore
HotfixPackets.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 HotfixPackets_h__
19#define HotfixPackets_h__
20
21#include "Packet.h"
22#include "Common.h"
23#include "DB2Stores.h"
24#include "ObjectGuid.h"
25
26namespace WorldPackets
27{
28 namespace Hotfix
29 {
30 class DBQueryBulk final : public ClientPacket
31 {
32 public:
34 {
36 };
37
39
40 void Read() override;
41
43 std::vector<DBQueryRecord> Queries;
44 };
45
46 class DBReply final : public ServerPacket
47 {
48 public:
49 DBReply() : ServerPacket(SMSG_DB_REPLY, 4 + 4 + 4 + 1 + 4) { }
50
51 WorldPacket const* Write() override;
52
58 };
59
60 class AvailableHotfixes final : public ServerPacket
61 {
62 public:
64
65 WorldPacket const* Write() override;
66
68 std::set<DB2Manager::HotfixId> Hotfixes;
69 };
70
71 class HotfixRequest final : public ClientPacket
72 {
73 public:
75
76 void Read() override;
77
80 std::vector<int32> Hotfixes;
81 };
82
83 class HotfixConnect final : public ServerPacket
84 {
85 public:
87 {
90 };
91
93
94 WorldPacket const* Write() override;
95
96 std::vector<HotfixData> Hotfixes;
98 };
99 }
100}
101
102#endif // HotfixPackets_h__
int32_t int32
Definition: Define.h:138
uint32_t uint32
Definition: Define.h:142
std::set< DB2Manager::HotfixId > Hotfixes
Definition: HotfixPackets.h:68
WorldPacket const * Write() override
std::vector< DBQueryRecord > Queries
Definition: HotfixPackets.h:43
DBQueryBulk(WorldPacket &&packet)
Definition: HotfixPackets.h:38
DB2Manager::HotfixRecord::Status Status
Definition: HotfixPackets.h:56
WorldPacket const * Write() override
WorldPacket const * Write() override
std::vector< HotfixData > Hotfixes
Definition: HotfixPackets.h:96
HotfixRequest(WorldPacket &&packet)
Definition: HotfixPackets.h:74
@ CMSG_DB_QUERY_BULK
Definition: Opcodes.h:308
@ CMSG_HOTFIX_REQUEST
Definition: Opcodes.h:436
@ SMSG_HOTFIX_CONNECT
Definition: Opcodes.h:1424
@ SMSG_DB_REPLY
Definition: Opcodes.h:1193
@ SMSG_AVAILABLE_HOTFIXES
Definition: Opcodes.h:981
STL namespace.