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

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::GuildFinder::LFGuildBrowseData const &guildData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::GuildFinder::LFGuildApplicationData const &application)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::GuildFinder::GuildPostData const &post)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::GuildFinder::LFGuildRecruitData const &recruit)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::GuildFinder::LFGuildBrowseData const guildData 
)
39 {
40  data.WriteBits(guildData.GuildName.length(), 7);
41  data.WriteBits(guildData.Comment.length(), 10);
42  data << guildData.GuildGUID;
43  data << uint32(guildData.GuildVirtualRealm);
44  data << int32(guildData.GuildMembers);
45  data << int32(guildData.GuildAchievementPoints);
46  data << int32(guildData.PlayStyle);
47  data << int32(guildData.Availability);
48  data << int32(guildData.ClassRoles);
49  data << int32(guildData.LevelRange);
50  data << int32(guildData.EmblemStyle);
51  data << int32(guildData.EmblemColor);
52  data << int32(guildData.BorderStyle);
53  data << int32(guildData.BorderColor);
54  data << int32(guildData.Background);
55  data << int8(guildData.Cached);
56  data << int8(guildData.MembershipRequested);
57  data.WriteString(guildData.GuildName);
58  data.WriteString(guildData.Comment);
59  return data;
60 }
int8_t int8
Definition: g3dmath.h:163
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32_t int32
Definition: g3dmath.h:167
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:

77 {
78  data << application.GuildGUID;
79  data << uint32(application.GuildVirtualRealm);
80  data << int32(application.ClassRoles);
81  data << int32(application.PlayStyle);
82  data << int32(application.Availability);
83  data << uint32(application.SecondsSinceCreated);
84  data << uint32(application.SecondsUntilExpiration);
85  data.WriteBits(application.GuildName.length(), 7);
86  data.WriteBits(application.Comment.length(), 10);
87  data.FlushBits();
88  data.WriteString(application.GuildName);
89  data.WriteString(application.Comment);
90  return data;
91 }
void FlushBits()
Definition: ByteBuffer.h:150
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32_t int32
Definition: g3dmath.h:167
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:

104 {
105  data.WriteBit(post.Active);
106  data.WriteBits(post.Comment.length(), 10);
107  data << int32(post.PlayStyle);
108  data << int32(post.Availability);
109  data << int32(post.ClassRoles);
110  data << int32(post.LevelRange);
111  data << uint32(post.SecondsRemaining);
112  data.WriteString(post.Comment);
113  return data;
114 }
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32_t int32
Definition: g3dmath.h:167
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:

132 {
133  data << recruit.RecruitGUID;
134  data << uint32(recruit.RecruitVirtualRealm);
135  data << int32(recruit.CharacterClass);
136  data << int32(recruit.CharacterGender);
137  data << int32(recruit.CharacterLevel);
138  data << int32(recruit.ClassRoles);
139  data << int32(recruit.PlayStyle);
140  data << int32(recruit.Availability);
141  data << uint32(recruit.SecondsSinceCreated);
142  data << uint32(recruit.SecondsUntilExpiration);
143  data.WriteBits(recruit.Name.length(), 6);
144  data.WriteBits(recruit.Comment.length(), 10);
145  data.FlushBits();
146  data.WriteString(recruit.Name);
147  data.WriteString(recruit.Comment);
148  return data;
149 }
void FlushBits()
Definition: ByteBuffer.h:150
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32_t int32
Definition: g3dmath.h:167
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: