TrinityCore
Loading...
Searching...
No Matches
InspectPackets.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_INSPECT_PACKETS_H
19#define TRINITYCORE_INSPECT_PACKETS_H
20
21#include "Packet.h"
22#include "CharacterPackets.h"
23#include "DBCEnums.h"
24#include "ItemPacketsCommon.h"
25#include "ObjectGuid.h"
26#include "RaceMask.h"
27#include "SharedDefines.h"
28#include "TalentPackets.h"
29#include "TraitPacketsCommon.h"
30
31class Item;
32class Player;
33
34namespace WorldPackets
35{
36 namespace Inspect
37 {
38 class Inspect final : public ClientPacket
39 {
40 public:
41 explicit Inspect(WorldPacket&& packet) : ClientPacket(CMSG_INSPECT, std::move(packet)) { }
42
43 void Read() override;
44
46 };
47
49 {
50 InspectEnchantData(uint32 id, uint8 index) : Id(id), Index(index) { }
51
54 };
55
63
65 {
66 InspectItemData(::Item const* item, uint8 index);
67
71 bool Usable = false;
72 std::vector<InspectEnchantData> Enchants;
73 std::vector<Item::ItemGemData> Gems;
74 std::vector<int32> AzeritePowers;
75 std::vector<AzeriteEssenceData> AzeriteEssences;
76 };
77
79 {
81 std::vector<InspectItemData> Items;
82 std::string Name;
87 std::vector<Character::ChrCustomizationChoice> Customizations;
88
89 void Initialize(Player const* player);
90 };
91
98
121
128
152
154 {
155 public:
157
158 void Read() override;
159
161 };
162
164 }
165}
166
167#endif // TRINITYCORE_INSPECT_PACKETS_H
uint8_t uint8
Definition Define.h:156
int32_t int32
Definition Define.h:150
uint16_t uint16
Definition Define.h:155
uint32_t uint32
Definition Define.h:154
@ SMSG_INSPECT_RESULT
Definition Opcodes.h:1720
@ CMSG_QUERY_INSPECT_ACHIEVEMENTS
Definition Opcodes.h:766
@ CMSG_INSPECT
Definition Opcodes.h:509
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition Optional.h:25
@ RACE_NONE
Definition RaceMask.h:28
@ CLASS_NONE
@ GENDER_NONE
Definition Item.h:179
std::array< PVPBracketData, 9 > Bracket
WorldPacket const * Write() override
std::array< uint16, MAX_PVP_TALENT_SLOTS > PvpTalents
Talent::ClassicTalentInfoUpdate TalentInfo
Optional< InspectGuildData > GuildData
Inspect(WorldPacket &&packet)
STL namespace.
std::vector< InspectEnchantData > Enchants
std::vector< Item::ItemGemData > Gems
std::vector< AzeriteEssenceData > AzeriteEssences
std::vector< Character::ChrCustomizationChoice > Customizations