TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlegroundPackets.cpp File Reference
+ Include dependency graph for BattlegroundPackets.cpp:

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Battleground::PVPLogData::RatingData const &ratingData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Battleground::PVPLogData::HonorData const &honorData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Battleground::PVPLogData::PlayerData const &playerData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Battleground::BattlefieldStatusHeader const &header)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Battleground::BattlegroundPlayerPosition const &playerPosition)
 

Function Documentation

47 {
48  data.append(ratingData.Prematch, 2);
49  data.append(ratingData.Postmatch, 2);
50  data.append(ratingData.PrematchMMR, 2);
51  return data;
52 }
void append(T value)
Definition: ByteBuffer.h:143

+ Here is the call graph for this function:

55 {
56  data << uint32(honorData.HonorKills);
57  data << uint32(honorData.Deaths);
58  data << uint32(honorData.ContributionPoints);
59  return data;
60 }
uint32_t uint32
Definition: g3dmath.h:168
63 {
64  data << playerData.PlayerGUID;
65  data << uint32(playerData.Kills);
66  data << uint32(playerData.DamageDone);
67  data << uint32(playerData.HealingDone);
68  data << uint32(playerData.Stats.size());
69  data << int32(playerData.PrimaryTalentTree);
70  data << uint32(playerData.PrimaryTalentTreeNameIndex);
71  data << uint32(playerData.Race);
72  if (!playerData.Stats.empty())
73  data.append(playerData.Stats.data(), playerData.Stats.size());
74 
75  data.WriteBit(playerData.Faction);
76  data.WriteBit(playerData.IsInWorld);
77  data.WriteBit(playerData.Honor.is_initialized());
78  data.WriteBit(playerData.PreMatchRating.is_initialized());
79  data.WriteBit(playerData.RatingChange.is_initialized());
80  data.WriteBit(playerData.PreMatchMMR.is_initialized());
81  data.WriteBit(playerData.MmrChange.is_initialized());
82  data.FlushBits();
83 
84  if (playerData.Honor)
85  data << *playerData.Honor;
86 
87  if (playerData.PreMatchRating)
88  data << uint32(*playerData.PreMatchRating);
89 
90  if (playerData.RatingChange)
91  data << uint32(*playerData.RatingChange);
92 
93  if (playerData.PreMatchMMR)
94  data << uint32(*playerData.PreMatchMMR);
95 
96  if (playerData.MmrChange)
97  data << uint32(*playerData.MmrChange);
98 
99  return data;
100 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void append(T value)
Definition: ByteBuffer.h:143
int32_t int32
Definition: g3dmath.h:167
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

137 {
138  data << header.Ticket;
139  data << uint64(header.QueueID);
140  data << uint8(header.RangeMin);
141  data << uint8(header.RangeMax);
142  data << uint8(header.TeamSize);
143  data << uint32(header.InstanceID);
144  data.WriteBit(header.RegisteredMatch);
145  data.WriteBit(header.TournamentRules);
146  data.FlushBits();
147  return data;
148 }
void FlushBits()
Definition: ByteBuffer.h:150
uint64_t uint64
Definition: g3dmath.h:170
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:

254 {
255  data << playerPosition.Guid;
256  data << playerPosition.Pos;
257  data << int8(playerPosition.IconID);
258  data << int8(playerPosition.ArenaSlot);
259  return data;
260 }
int8_t int8
Definition: g3dmath.h:163