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

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Social::ContactInfo const &contact)
 
ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Social::QualifiedGUID &qGuid)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Social::ContactInfo const contact 
)
43 {
44  data << contact.Guid;
45  data << contact.WowAccountGuid;
46  data << uint32(contact.VirtualRealmAddr);
47  data << uint32(contact.NativeRealmAddr);
48  data << uint32(contact.TypeFlags);
49  data << uint8(contact.Status);
50  data << uint32(contact.AreaID);
51  data << uint32(contact.Level);
52  data << uint32(contact.ClassID);
53  data.WriteBits(contact.Notes.length(), 10);
54  data.FlushBits();
55  data.WriteString(contact.Notes);
56 
57  return data;
58 }
void FlushBits()
Definition: ByteBuffer.h:150
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8_t uint8
Definition: g3dmath.h:164
uint32_t uint32
Definition: g3dmath.h:168
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

ByteBuffer& operator>> ( ByteBuffer data,
WorldPackets::Social::QualifiedGUID qGuid 
)
103 {
104  data >> qGuid.VirtualRealmAddress;
105  data >> qGuid.Guid;
106 
107  return data;
108 }
uint32 VirtualRealmAddress
Definition: SocialPackets.h:92
ObjectGuid Guid
Definition: SocialPackets.h:91