AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GuildPackets.cpp File Reference
#include "GuildPackets.h"

Go to the source code of this file.

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildRosterMemberData const &rosterMemberData)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Guild::GuildRankData const &rankData)
 

Function Documentation

◆ operator<<() [1/2]

ByteBuffer & operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildRankData const &  rankData 
)
195{
196 data << uint32(rankData.Flags);
197 data << uint32(rankData.WithdrawGoldLimit);
198
199 for (uint8 i = 0; i < GUILD_BANK_MAX_TABS; i++)
200 {
201 data << uint32(rankData.TabFlags[i]);
202 data << uint32(rankData.TabWithdrawItemLimit[i]);
203 }
204
205 return data;
206}
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ GUILD_BANK_MAX_TABS
Definition: Guild.h:42

References WorldPackets::Guild::GuildRankData::Flags, GUILD_BANK_MAX_TABS, WorldPackets::Guild::GuildRankData::TabFlags, WorldPackets::Guild::GuildRankData::TabWithdrawItemLimit, and WorldPackets::Guild::GuildRankData::WithdrawGoldLimit.

◆ operator<<() [2/2]

ByteBuffer & operator<< ( ByteBuffer data,
WorldPackets::Guild::GuildRosterMemberData const &  rosterMemberData 
)
104{
105 data << rosterMemberData.Guid;
106 data << uint8(rosterMemberData.Status);
107 data << rosterMemberData.Name;
108 data << int32(rosterMemberData.RankID);
109 data << uint8(rosterMemberData.Level);
110 data << uint8(rosterMemberData.ClassID);
111 data << uint8(rosterMemberData.Gender);
112 data << int32(rosterMemberData.AreaID);
113 if (!rosterMemberData.Status)
114 data << float(rosterMemberData.LastSave);
115
116 data << rosterMemberData.Note;
117 data << rosterMemberData.OfficerNote;
118
119 return data;
120}
std::int32_t int32
Definition: Define.h:103

References WorldPackets::Guild::GuildRosterMemberData::AreaID, WorldPackets::Guild::GuildRosterMemberData::ClassID, WorldPackets::Guild::GuildRosterMemberData::Gender, WorldPackets::Guild::GuildRosterMemberData::Guid, WorldPackets::Guild::GuildRosterMemberData::LastSave, WorldPackets::Guild::GuildRosterMemberData::Level, WorldPackets::Guild::GuildRosterMemberData::Name, WorldPackets::Guild::GuildRosterMemberData::Note, WorldPackets::Guild::GuildRosterMemberData::OfficerNote, WorldPackets::Guild::GuildRosterMemberData::RankID, and WorldPackets::Guild::GuildRosterMemberData::Status.