TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
InspectPackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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 "ItemPackets.h"
22 #include "ObjectGuid.h"
23 
24 class Item;
25 
26 namespace WorldPackets
27 {
28  namespace Inspect
29  {
30  class Inspect final : public ClientPacket
31  {
32  public:
33  Inspect(WorldPacket&& packet) : ClientPacket(CMSG_INSPECT, std::move(packet)) { }
34 
35  void Read() override;
36 
38  };
39 
41  {
42  InspectEnchantData(uint32 id, uint8 index) : Id(id), Index(index) { }
43 
44  uint32 Id = 0;
45  uint8 Index = 0;
46  };
47 
49  {
50  InspectItemData(::Item const* item, uint8 index);
51 
54  uint8 Index = 0;
55  bool Usable = false;
56  std::vector<InspectEnchantData> Enchants;
57  };
58 
60  {
64  };
65 
66  class InspectResult final : public ServerPacket
67  {
68  public:
70 
71  WorldPacket const* Write() override;
72 
73  std::vector<InspectItemData> Items;
76  std::vector<uint16> Talents;
77  std::vector<uint16> Glyphs;
81  };
82 
83  class RequestHonorStats final : public ClientPacket
84  {
85  public:
87 
88  void Read() override;
89 
91  };
92 
93  class InspectHonorStats final : public ServerPacket
94  {
95  public:
97 
98  WorldPacket const* Write() override;
99 
105  };
106 
107  class InspectPVPRequest final : public ClientPacket
108  {
109  public:
111 
112  void Read() override;
113 
116  };
117 
119  {
121  int32 Rank = 0;
128  };
129 
130  class InspectPVPResponse final : public ServerPacket
131  {
132  public:
134 
135  WorldPacket const* Write() override;
136 
137  std::vector<PVPBracketData> Bracket;
139  };
140 
142  {
143  public:
145 
146  void Read() override;
147 
149  };
150 
152  }
153 }
InspectResult()
Definition: InspectPackets.h:69
Optional< InspectGuildData > GuildData
Definition: InspectPackets.h:78
int32 WeeklyWon
Definition: InspectPackets.h:123
int32 SeasonWon
Definition: InspectPackets.h:125
void Read() override
Definition: InspectPackets.cpp:21
ObjectGuid Target
Definition: InspectPackets.h:37
Definition: InspectPackets.h:118
Definition: Opcodes.h:521
uint8 Bracket
Definition: InspectPackets.h:127
std::vector< uint16 > Glyphs
Definition: InspectPackets.h:77
InspectEnchantData(uint32 id, uint8 index)
Definition: InspectPackets.h:42
Definition: Opcodes.h:353
Definition: Opcodes.h:1125
std::vector< InspectEnchantData > Enchants
Definition: InspectPackets.h:56
int32 ClassID
Definition: InspectPackets.h:74
InspectHonorStats()
Definition: InspectPackets.h:96
uint8 Index
Definition: InspectPackets.h:45
WorldPacket const * Write() override
Definition: InspectPackets.cpp:109
STL namespace.
std::vector< PVPBracketData > Bracket
Definition: InspectPackets.h:137
int32 Rating
Definition: InspectPackets.h:120
int32 SeasonPlayed
Definition: InspectPackets.h:124
InspectPVPRequest(WorldPacket &&packet)
Definition: InspectPackets.h:110
int32 WeeklyBestRating
Definition: InspectPackets.h:126
void Read() override
Definition: InspectPackets.cpp:104
void Read() override
Definition: InspectPackets.cpp:153
uint8 LifetimeMaxRank
Definition: InspectPackets.h:104
void Read() override
Definition: InspectPackets.cpp:120
uint16 TodayHK
Definition: InspectPackets.h:103
uint8 Index
Definition: InspectPackets.h:54
ObjectGuid PlayerGUID
Definition: InspectPackets.h:100
RequestHonorStats(WorldPacket &&packet)
Definition: InspectPackets.h:86
InspectItemData(::Item const *item, uint8 index)
Definition: InspectPackets.cpp:59
Definition: Packet.h:59
int32 NumGuildMembers
Definition: InspectPackets.h:62
WorldPacket const * Write() override
Definition: InspectPackets.cpp:140
int32 GenderID
Definition: InspectPackets.h:75
Definition: Opcodes.h:354
int32 Rank
Definition: InspectPackets.h:121
WorldPacket const * Write() override
Definition: InspectPackets.cpp:74
Definition: Opcodes.h:1123
Definition: Packet.h:46
InspectPVPResponse()
Definition: InspectPackets.h:133
ObjectGuid InspectTarget
Definition: InspectPackets.h:114
Inspect(WorldPacket &&packet)
Definition: InspectPackets.h:33
Definition: InspectPackets.h:59
Definition: Item.h:259
Definition: InspectPackets.h:107
Definition: InspectPackets.h:93
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint16_t uint16
Definition: Define.h:151
ObjectGuid CreatorGUID
Definition: InspectPackets.h:52
uint16 YesterdayHK
Definition: InspectPackets.h:102
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
Definition: Opcodes.h:1124
uint32 InspectRealmAddress
Definition: InspectPackets.h:115
Definition: InspectPackets.h:48
int32 WeeklyPlayed
Definition: InspectPackets.h:122
ObjectGuid TargetGUID
Definition: InspectPackets.h:90
Definition: BattlegroundMgr.h:57
std::vector< uint16 > Talents
Definition: InspectPackets.h:76
Definition: InspectPackets.h:66
Definition: SharedDefines.h:166
std::vector< InspectItemData > Items
Definition: InspectPackets.h:73
Definition: Opcodes.h:567
uint32 Id
Definition: InspectPackets.h:44
int32 SpecializationID
Definition: InspectPackets.h:80
ObjectGuid InspecteeGUID
Definition: InspectPackets.h:79
ObjectGuid Guid
Definition: InspectPackets.h:148
Definition: InspectPackets.h:30
Item::ItemInstance Item
Definition: InspectPackets.h:53
uint32 LifetimeHK
Definition: InspectPackets.h:101
uint8_t uint8
Definition: Define.h:152
Definition: ItemPackets.h:40
QueryInspectAchievements(WorldPacket &&packet)
Definition: InspectPackets.h:144
Definition: ObjectGuid.h:189
bool Usable
Definition: InspectPackets.h:55
int32 AchievementPoints
Definition: InspectPackets.h:63
Definition: InspectPackets.h:130
ObjectGuid ClientGUID
Definition: InspectPackets.h:138
Definition: InspectPackets.h:83
Definition: WorldPacket.h:26
Definition: InspectPackets.h:40
Definition: InspectPackets.h:141
ObjectGuid GuildGUID
Definition: InspectPackets.h:61
Definition: SharedDefines.h:95