AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Guild::GuildBankLogQueryResults Class Referencefinal

#include "GuildPackets.h"

Inheritance diagram for WorldPackets::Guild::GuildBankLogQueryResults:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 GuildBankLogQueryResults ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
OpcodeServer GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

uint8 Tab = 0
 
std::vector< GuildBankLogEntryEntry
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ GuildBankLogQueryResults()

WorldPackets::Guild::GuildBankLogQueryResults::GuildBankLogQueryResults ( )
inline
@ MSG_GUILD_BANK_LOG_QUERY
Definition: Opcodes.h:1036
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::Guild::GuildBankLogQueryResults::Write ( )
overridevirtual

Implements WorldPackets::Packet.

386{
388 _worldPacket << uint8(Entry.size());
389
390 for (GuildBankLogEntry const& logEntry : Entry)
391 {
392 _worldPacket << int8(logEntry.EntryType);
393 _worldPacket << logEntry.PlayerGUID;
394
395 switch (logEntry.EntryType)
396 {
399 _worldPacket << uint32(logEntry.ItemID);
400 _worldPacket << uint32(logEntry.Count);
401 break;
404 _worldPacket << uint32(logEntry.ItemID);
405 _worldPacket << uint32(logEntry.Count);
406 _worldPacket << uint8(logEntry.OtherTab);
407 break;
408 default:
409 _worldPacket << uint32(logEntry.Money);
410 break;
411 }
412
413 _worldPacket << uint32(logEntry.TimeOffset);
414 }
415
416 return &_worldPacket;
417}
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
std::int8_t int8
Definition: Define.h:105
@ GUILD_BANK_LOG_MOVE_ITEM
Definition: Guild.h:199
@ GUILD_BANK_LOG_WITHDRAW_ITEM
Definition: Guild.h:198
@ GUILD_BANK_LOG_DEPOSIT_ITEM
Definition: Guild.h:197
@ GUILD_BANK_LOG_MOVE_ITEM2
Definition: Guild.h:203
WorldPacket _worldPacket
Definition: Packet.h:42
uint8 Tab
Definition: GuildPackets.h:552
std::vector< GuildBankLogEntry > Entry
Definition: GuildPackets.h:553

References Entry, GUILD_BANK_LOG_DEPOSIT_ITEM, GUILD_BANK_LOG_MOVE_ITEM, GUILD_BANK_LOG_MOVE_ITEM2, and GUILD_BANK_LOG_WITHDRAW_ITEM.

Referenced by Guild::SendBankLog().

Member Data Documentation

◆ Entry

std::vector<GuildBankLogEntry> WorldPackets::Guild::GuildBankLogQueryResults::Entry

◆ Tab

uint8 WorldPackets::Guild::GuildBankLogQueryResults::Tab = 0

Referenced by Guild::SendBankLog().