TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
InspectPackets.cpp File Reference
#include "InspectPackets.h"
#include "Item.h"
+ Include dependency graph for InspectPackets.cpp:

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Inspect::InspectEnchantData const &enchantData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Inspect::InspectItemData const &itemData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Inspect::InspectGuildData const &guildData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Inspect::PVPBracketData const &bracket)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Inspect::InspectEnchantData const enchantData 
)
27 {
28  data << uint32(enchantData.Id);
29  data << uint8(enchantData.Index);
30 
31  return data;
32 }
uint8_t uint8
Definition: g3dmath.h:164
uint32_t uint32
Definition: g3dmath.h:168
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Inspect::InspectItemData const itemData 
)
35 {
36  data << itemData.CreatorGUID;
37  data << itemData.Item;
38  data << uint8(itemData.Index);
39 
40  data << uint32(itemData.Enchants.size());
41  for (size_t i = 0; i < itemData.Enchants.size(); ++i)
42  data << itemData.Enchants[i];
43 
44  data.WriteBit(itemData.Usable);
45  data.FlushBits();
46 
47  return data;
48 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint8_t uint8
Definition: g3dmath.h:164
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Inspect::InspectGuildData const guildData 
)
51 {
52  data << guildData.GuildGUID;
53  data << int32(guildData.NumGuildMembers);
54  data << int32(guildData.AchievementPoints);
55 
56  return data;
57 }
int32_t int32
Definition: g3dmath.h:167
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Inspect::PVPBracketData const bracket 
)
127 {
128  data << int32(bracket.Rating);
129  data << int32(bracket.Rank);
130  data << int32(bracket.WeeklyPlayed);
131  data << int32(bracket.WeeklyWon);
132  data << int32(bracket.SeasonPlayed);
133  data << int32(bracket.SeasonWon);
134  data << int32(bracket.WeeklyBestRating);
135  data << uint8(bracket.Bracket);
136 
137  return data;
138 }
uint8_t uint8
Definition: g3dmath.h:164
int32_t int32
Definition: g3dmath.h:167