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());
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());
85 data << *playerData.Honor;
87 if (playerData.PreMatchRating)
88 data <<
uint32(*playerData.PreMatchRating);
90 if (playerData.RatingChange)
91 data <<
uint32(*playerData.RatingChange);
93 if (playerData.PreMatchMMR)
94 data <<
uint32(*playerData.PreMatchMMR);
96 if (playerData.MmrChange)
97 data <<
uint32(*playerData.MmrChange);
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