TrinityCore
Loading...
Searching...
No Matches
TransmogrificationPackets.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_TRANSMOGRIFICATION_PACKETS_H
19#define TRINITYCORE_TRANSMOGRIFICATION_PACKETS_H
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23#include "PacketUtilities.h"
24
27enum class TransmogOutfitSetType : uint8;
28enum class TransmogOutfitSlot : int8;
31
32namespace WorldPackets
33{
34 namespace Transmogrification
35 {
43
44 class TransmogrifyItems final : public ClientPacket
45 {
46 public:
47 enum
48 {
50 };
51
52 explicit TransmogrifyItems(WorldPacket&& packet) : ClientPacket(CMSG_TRANSMOGRIFY_ITEMS, std::move(packet)) { }
53
54 void Read() override;
55
58 bool CurrentSpecOnly = false;
59 };
60
62 {
64 bool SituationsEnabled = false;
66 std::string_view Name;
67 };
68
69 class TransmogOutfitNew final : public ClientPacket
70 {
71 public:
73
74 void Read() override;
75
79 };
80
90
92 {
93 public:
95
96 void Read() override;
97
101 };
102
104 {
105 public:
107
108 WorldPacket const* Write() override;
109
112 };
113
121
134
136 {
137 public:
139
140 WorldPacket const* Write() override;
141
143 bool SituationsEnabled = false;
144 std::span<TransmogOutfitSituationInfo const> Situations;
145 };
146
158
172
174 {
175 public:
176 explicit TransmogOutfitSlotsUpdated() : ServerPacket(SMSG_TRANSMOG_OUTFIT_SLOTS_UPDATED, 4 + 4 + 30 * (1 + 1 + 4 + 1 + 4 + 1 + 4)) { }
177
178 WorldPacket const* Write() override;
179
181 std::span<TransmogOutfitSlotData const> Slots;
182 };
183
185 {
186 public:
188
189 WorldPacket const* Write() override;
190
191 bool IsFullUpdate = false;
192 bool IsSetFavorite = false;
193 std::vector<uint32> FavoriteAppearances;
194 std::vector<uint32> NewAppearances;
195 };
196 }
197}
198
199#endif // TRINITYCORE_TRANSMOGRIFICATION_PACKETS_H
TransmogOutfitSetType
Definition DBCEnums.h:2585
TransmogOutfitSlotOption
Definition DBCEnums.h:2622
TransmogOutfitSlotOptionSheatheCategory
Definition DBCEnums.h:2649
TransmogOutfitDisplayType
Definition DBCEnums.h:2543
TransmogOutfitEntrySource
Definition DBCEnums.h:2576
TransmogOutfitSlot
Definition DBCEnums.h:2592
uint8_t uint8
Definition Define.h:156
int8_t int8
Definition Define.h:152
int32_t int32
Definition Define.h:150
uint64_t uint64
Definition Define.h:153
uint32_t uint32
Definition Define.h:154
@ SMSG_TRANSMOG_OUTFIT_INFO_UPDATED
Definition Opcodes.h:2393
@ SMSG_ACCOUNT_TRANSMOG_UPDATE
Definition Opcodes.h:1109
@ SMSG_TRANSMOG_OUTFIT_SLOTS_UPDATED
Definition Opcodes.h:2396
@ SMSG_TRANSMOG_OUTFIT_SITUATIONS_UPDATED
Definition Opcodes.h:2395
@ SMSG_TRANSMOG_OUTFIT_NEW_ENTRY_ADDED
Definition Opcodes.h:2394
@ CMSG_TRANSMOGRIFY_ITEMS
Definition Opcodes.h:1049
@ CMSG_TRANSMOG_OUTFIT_NEW
Definition Opcodes.h:1003
@ CMSG_TRANSMOG_OUTFIT_UPDATE_SITUATIONS
Definition Opcodes.h:1005
@ CMSG_TRANSMOG_OUTFIT_UPDATE_INFO
Definition Opcodes.h:1004
@ CMSG_TRANSMOG_OUTFIT_UPDATE_SLOTS
Definition Opcodes.h:1006
Array< TransmogrifyItem, MAX_TRANSMOGRIFY_ITEMS > Items
STL namespace.