TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_HOTFIX_PACKETS_H
19#define TRINITYCORE_HOTFIX_PACKETS_H
20
21#include "Common.h"
22#include "DB2Stores.h"
23#include "Packet.h"
24
25namespace WorldPackets
26{
27 namespace Hotfix
28 {
29 class DBQueryBulk final : public ClientPacket
30 {
31 public:
33 {
35 };
36
37 explicit DBQueryBulk(WorldPacket&& packet) : ClientPacket(CMSG_DB_QUERY_BULK, std::move(packet)) { }
38
39 void Read() override;
40
42 std::vector<DBQueryRecord> Queries;
43 };
44
58
59 class AvailableHotfixes final : public ServerPacket
60 {
61 public:
63
64 WorldPacket const* Write() override;
65
67 std::set<DB2Manager::HotfixId> Hotfixes;
68 };
69
70 class HotfixRequest final : public ClientPacket
71 {
72 public:
73 explicit HotfixRequest(WorldPacket&& packet) : ClientPacket(CMSG_HOTFIX_REQUEST, std::move(packet)) { }
74
75 void Read() override;
76
79 std::vector<int32> Hotfixes;
80 };
81
82 class HotfixConnect final : public ServerPacket
83 {
84 public:
90
92
93 WorldPacket const* Write() override;
94
95 std::vector<HotfixData> Hotfixes;
97 };
98 }
99}
100
101#endif // TRINITYCORE_HOTFIX_PACKETS_H
int32_t int32
Definition Define.h:150
uint32_t uint32
Definition Define.h:154
@ SMSG_HOTFIX_CONNECT
Definition Opcodes.h:1647
@ SMSG_DB_REPLY
Definition Opcodes.h:1405
@ SMSG_AVAILABLE_HOTFIXES
Definition Opcodes.h:1175
@ CMSG_DB_QUERY_BULK
Definition Opcodes.h:313
@ CMSG_HOTFIX_REQUEST
Definition Opcodes.h:455
std::set< DB2Manager::HotfixId > Hotfixes
WorldPacket const * Write() override
std::vector< DBQueryRecord > Queries
DBQueryBulk(WorldPacket &&packet)
DB2Manager::HotfixRecord::Status Status
WorldPacket const * Write() override
WorldPacket const * Write() override
std::vector< HotfixData > Hotfixes
HotfixRequest(WorldPacket &&packet)
STL namespace.