TrinityCore
EquipmentSetPackets.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#pragma once
19
20#include "Packet.h"
21#include "EquipmentSet.h"
22#include "ItemPacketsCommon.h"
23
24namespace WorldPackets
25{
26 namespace EquipmentSet
27 {
28 class EquipmentSetID final : public ServerPacket
29 {
30 public:
32
33 WorldPacket const* Write() override;
34
38 };
39
40 class LoadEquipmentSet final : public ServerPacket
41 {
42 public:
44
45 WorldPacket const* Write() override;
46
47 std::vector<EquipmentSetInfo::EquipmentSetData const*> SetData;
48 };
49
50 class SaveEquipmentSet final : public ClientPacket
51 {
52 public:
54
55 void Read() override;
56
58 };
59
60 class DeleteEquipmentSet final : public ClientPacket
61 {
62 public:
64
65 void Read() override;
66
68 };
69
70 class UseEquipmentSet final : public ClientPacket
71 {
72 public:
74
75 void Read() override;
76
78 {
82 };
83
87 };
88
90 {
91 public:
93
94 WorldPacket const* Write() override;
95
98 };
99 }
100}
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
#define EQUIPMENT_SET_SLOTS
Definition: EquipmentSet.h:34
std::vector< EquipmentSetInfo::EquipmentSetData const * > SetData
EquipmentSetInfo::EquipmentSetData Set
@ CMSG_DELETE_EQUIPMENT_SET
Definition: Opcodes.h:311
@ CMSG_SAVE_EQUIPMENT_SET
Definition: Opcodes.h:747
@ CMSG_USE_EQUIPMENT_SET
Definition: Opcodes.h:882
@ SMSG_USE_EQUIPMENT_SET_RESULT
Definition: Opcodes.h:2045
@ SMSG_LOAD_EQUIPMENT_SET
Definition: Opcodes.h:1507
@ SMSG_EQUIPMENT_SET_ID
Definition: Opcodes.h:1234
STL namespace.
Data sent in EquipmentSet related packets.
Definition: EquipmentSet.h:46