TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GuildPackets.h File Reference
#include "Packet.h"
#include "ObjectGuid.h"
#include "Guild.h"
#include "ItemPackets.h"
+ Include dependency graph for GuildPackets.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WorldPackets::Guild::QueryGuildInfo
 
class  WorldPackets::Guild::QueryGuildInfoResponse
 
struct  WorldPackets::Guild::QueryGuildInfoResponse::GuildInfo
 
struct  WorldPackets::Guild::QueryGuildInfoResponse::GuildInfo::GuildInfoRank
 
class  WorldPackets::Guild::GuildGetRoster
 
struct  WorldPackets::Guild::GuildRosterProfessionData
 
struct  WorldPackets::Guild::GuildRosterMemberData
 
class  WorldPackets::Guild::GuildRoster
 
class  WorldPackets::Guild::GuildRosterUpdate
 
class  WorldPackets::Guild::GuildUpdateMotdText
 
class  WorldPackets::Guild::GuildCommandResult
 
class  WorldPackets::Guild::AcceptGuildInvite
 
class  WorldPackets::Guild::GuildDeclineInvitation
 
class  WorldPackets::Guild::DeclineGuildInvites
 
class  WorldPackets::Guild::GuildInviteByName
 
class  WorldPackets::Guild::GuildInvite
 
class  WorldPackets::Guild::GuildEventPresenceChange
 
class  WorldPackets::Guild::GuildEventMotd
 
class  WorldPackets::Guild::GuildEventPlayerJoined
 
class  WorldPackets::Guild::GuildEventRankChanged
 
class  WorldPackets::Guild::GuildEventRanksUpdated
 
class  WorldPackets::Guild::GuildEventBankMoneyChanged
 
class  WorldPackets::Guild::GuildEventDisbanded
 
struct  WorldPackets::Guild::GuildEventEntry
 
class  WorldPackets::Guild::GuildEventLogQuery
 
class  WorldPackets::Guild::GuildEventLogQueryResults
 
class  WorldPackets::Guild::GuildEventPlayerLeft
 
class  WorldPackets::Guild::GuildEventNewLeader
 
class  WorldPackets::Guild::GuildEventTabAdded
 
class  WorldPackets::Guild::GuildEventTabModified
 
class  WorldPackets::Guild::GuildEventTabTextChanged
 
class  WorldPackets::Guild::GuildEventBankContentsChanged
 
class  WorldPackets::Guild::GuildPermissionsQuery
 
class  WorldPackets::Guild::GuildPermissionsQueryResults
 
struct  WorldPackets::Guild::GuildPermissionsQueryResults::GuildRankTabPermissions
 
class  WorldPackets::Guild::GuildSetRankPermissions
 
class  WorldPackets::Guild::GuildAddRank
 
class  WorldPackets::Guild::GuildAssignMemberRank
 
class  WorldPackets::Guild::GuildDeleteRank
 
class  WorldPackets::Guild::GuildGetRanks
 
struct  WorldPackets::Guild::GuildRankData
 
class  WorldPackets::Guild::GuildRanks
 
class  WorldPackets::Guild::GuildSendRankChange
 
class  WorldPackets::Guild::GuildShiftRank
 
class  WorldPackets::Guild::GuildUpdateInfoText
 
class  WorldPackets::Guild::GuildSetMemberNote
 
class  WorldPackets::Guild::GuildMemberUpdateNote
 
class  WorldPackets::Guild::GuildMemberDailyReset
 
class  WorldPackets::Guild::GuildDelete
 
class  WorldPackets::Guild::GuildDemoteMember
 
class  WorldPackets::Guild::GuildPromoteMember
 
class  WorldPackets::Guild::GuildOfficerRemoveMember
 
class  WorldPackets::Guild::GuildLeave
 
class  WorldPackets::Guild::GuildChangeNameRequest
 
class  WorldPackets::Guild::GuildFlaggedForRename
 
class  WorldPackets::Guild::RequestGuildPartyState
 
class  WorldPackets::Guild::GuildPartyState
 
class  WorldPackets::Guild::RequestGuildRewardsList
 
struct  WorldPackets::Guild::GuildRewardItem
 
class  WorldPackets::Guild::GuildRewardList
 
class  WorldPackets::Guild::GuildBankActivate
 
class  WorldPackets::Guild::GuildBankBuyTab
 
class  WorldPackets::Guild::GuildBankUpdateTab
 
class  WorldPackets::Guild::GuildBankDepositMoney
 
class  WorldPackets::Guild::GuildBankQueryTab
 
class  WorldPackets::Guild::GuildBankRemainingWithdrawMoneyQuery
 
class  WorldPackets::Guild::GuildBankRemainingWithdrawMoney
 
class  WorldPackets::Guild::GuildBankWithdrawMoney
 
struct  WorldPackets::Guild::GuildBankItemInfo
 
struct  WorldPackets::Guild::GuildBankItemInfo::GuildBankSocketEnchant
 
struct  WorldPackets::Guild::GuildBankTabInfo
 
class  WorldPackets::Guild::GuildBankQueryResults
 
class  WorldPackets::Guild::GuildBankSwapItems
 
class  WorldPackets::Guild::GuildBankLogQuery
 
struct  WorldPackets::Guild::GuildBankLogEntry
 
class  WorldPackets::Guild::GuildBankLogQueryResults
 
class  WorldPackets::Guild::GuildBankTextQuery
 
class  WorldPackets::Guild::GuildBankTextQueryResult
 
class  WorldPackets::Guild::GuildBankSetTabText
 
class  WorldPackets::Guild::GuildQueryNews
 
struct  WorldPackets::Guild::GuildNewsEvent
 
class  WorldPackets::Guild::GuildNews
 
class  WorldPackets::Guild::GuildNewsUpdateSticky
 
class  WorldPackets::Guild::GuildSetGuildMaster
 
class  WorldPackets::Guild::GuildChallengeUpdateRequest
 
class  WorldPackets::Guild::GuildChallengeUpdate
 
class  WorldPackets::Guild::SaveGuildEmblem
 
class  WorldPackets::Guild::PlayerSaveGuildEmblem
 
class  WorldPackets::Guild::GuildSetAchievementTracking
 

Namespaces

 WorldPackets
 
 WorldPackets::Guild
 

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildRosterProfessionData const &rosterProfessionData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildRosterMemberData const &rosterMemberData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildRankData const &rankData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildRewardItem const &rewardItem)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildNewsEvent const &newsEvent)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildRosterProfessionData const rosterProfessionData 
)
153 {
154  data << rosterProfessionData.DbID;
155  data << rosterProfessionData.Rank;
156  data << rosterProfessionData.Step;
157 
158  return data;
159 }
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildRosterMemberData const rosterMemberData 
)
162 {
163  data << rosterMemberData.Guid;
164  data << rosterMemberData.RankID;
165  data << rosterMemberData.AreaID;
166  data << rosterMemberData.PersonalAchievementPoints;
167  data << rosterMemberData.GuildReputation;
168  data << rosterMemberData.LastSave;
169 
170  for (uint8 i = 0; i < 2; i++)
171  data << rosterMemberData.Profession[i];
172 
173  data << rosterMemberData.VirtualRealmAddress;
174  data << rosterMemberData.Status;
175  data << rosterMemberData.Level;
176  data << rosterMemberData.ClassID;
177  data << rosterMemberData.Gender;
178 
179  data.WriteBits(rosterMemberData.Name.length(), 6);
180  data.WriteBits(rosterMemberData.Note.length(), 8);
181  data.WriteBits(rosterMemberData.OfficerNote.length(), 8);
182  data.WriteBit(rosterMemberData.Authenticated);
183  data.WriteBit(rosterMemberData.SorEligible);
184  data.FlushBits();
185 
186  data.WriteString(rosterMemberData.Name);
187  data.WriteString(rosterMemberData.Note);
188  data.WriteString(rosterMemberData.OfficerNote);
189 
190  return data;
191 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8_t uint8
Definition: Define.h:152
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildRankData const rankData 
)
363 {
364  data << rankData.RankID;
365  data << rankData.RankOrder;
366  data << rankData.Flags;
367  data << rankData.WithdrawGoldLimit;
368 
369  for (uint8 i = 0; i < GUILD_BANK_MAX_TABS; i++)
370  {
371  data << rankData.TabFlags[i];
372  data << rankData.TabWithdrawItemLimit[i];
373  }
374 
375  data.WriteBits(rankData.RankName.length(), 7);
376  data.FlushBits();
377 
378  data.WriteString(rankData.RankName);
379 
380  return data;
381 }
void FlushBits()
Definition: ByteBuffer.h:150
Definition: Guild.h:44
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8_t uint8
Definition: Define.h:152
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildRewardItem const rewardItem 
)
513 {
514  data << rewardItem.ItemID;
515  data << rewardItem.Unk4;
516  data << uint32(rewardItem.AchievementsRequired.size());
517  data << rewardItem.RaceMask;
518  data << rewardItem.MinGuildLevel;
519  data << rewardItem.MinGuildRep;
520  data << rewardItem.Cost;
521 
522  for (uint8 i = 0; i < rewardItem.AchievementsRequired.size(); i++)
523  data << rewardItem.AchievementsRequired[i];
524 
525  return data;
526 }
uint8_t uint8
Definition: Define.h:152
uint32_t uint32
Definition: g3dmath.h:168
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildNewsEvent const newsEvent 
)
739 {
740  data << newsEvent.Id;
741  data.AppendPackedTime(newsEvent.CompletedDate);
742  data << newsEvent.Type;
743  data << newsEvent.Flags;
744 
745  for (uint8 i = 0; i < 2; i++)
746  data << newsEvent.Data[i];
747 
748  data << newsEvent.MemberGuid;
749  data << uint32(newsEvent.MemberList.size());
750 
751  for (ObjectGuid memberGuid : newsEvent.MemberList)
752  data << memberGuid;
753 
754  data.WriteBit(newsEvent.Item.is_initialized());
755  data.FlushBits();
756 
757  if (newsEvent.Item)
758  data << *newsEvent.Item; // WorldPackets::Item::ItemInstance
759 
760  return data;
761 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint32_t uint32
Definition: Define.h:150
void AppendPackedTime(time_t time)
Definition: ByteBuffer.h:680
uint8_t uint8
Definition: Define.h:152
Definition: ObjectGuid.h:189

+ Here is the call graph for this function: