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

#include "GuildPackets.h"

Inheritance diagram for WorldPackets::Guild::GuildBankSwapItems:
WorldPackets::ClientPacket WorldPackets::Packet

Public Member Functions

 GuildBankSwapItems (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket const * Write () final
 
OpcodeClient 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

ObjectGuid Banker
 
int32 StackCount = 0
 
int32 BankItemCount = 0
 
uint32 ItemID = 0
 
uint32 ItemID1 = 0
 
uint8 ToSlot = 0
 
uint8 BankSlot = 0
 
uint8 BankSlot1 = 0
 
uint8 BankTab = 0
 
uint8 BankTab1 = 0
 
uint8 ContainerSlot = 0
 
uint8 ContainerItemSlot = 0
 
bool AutoStore = false
 
bool BankOnly = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ GuildBankSwapItems()

WorldPackets::Guild::GuildBankSwapItems::GuildBankSwapItems ( WorldPacket &&  packet)
inline
504: ClientPacket(CMSG_GUILD_BANK_SWAP_ITEMS, std::move(packet)) { }
@ CMSG_GUILD_BANK_SWAP_ITEMS
Definition: Opcodes.h:1031
ClientPacket(WorldPacket &&packet)
Definition: Packet.cpp:39

Member Function Documentation

◆ Read()

void WorldPackets::Guild::GuildBankSwapItems::Read ( )
overridevirtual

Implements WorldPackets::Packet.

338{
341
342 if (BankOnly)
343 {
344 // dest
348
349 // src
353
356 }
357 else
358 {
362
364 if (AutoStore)
365 {
369 }
370 else
371 {
376 }
377 }
378}
WorldPacket _worldPacket
Definition: Packet.h:42
uint8 ContainerSlot
Definition: GuildPackets.h:518
uint8 ToSlot
Definition: GuildPackets.h:513
bool BankOnly
Definition: GuildPackets.h:521
uint8 ContainerItemSlot
Definition: GuildPackets.h:519
uint8 BankTab
Definition: GuildPackets.h:516
ObjectGuid Banker
Definition: GuildPackets.h:508
uint32 ItemID
Definition: GuildPackets.h:511
uint8 BankTab1
Definition: GuildPackets.h:517
uint8 BankSlot
Definition: GuildPackets.h:514
bool AutoStore
Definition: GuildPackets.h:520
uint32 ItemID1
Definition: GuildPackets.h:512
uint8 BankSlot1
Definition: GuildPackets.h:515
int32 BankItemCount
Definition: GuildPackets.h:510
int32 StackCount
Definition: GuildPackets.h:509

Member Data Documentation

◆ AutoStore

bool WorldPackets::Guild::GuildBankSwapItems::AutoStore = false

◆ Banker

ObjectGuid WorldPackets::Guild::GuildBankSwapItems::Banker

◆ BankItemCount

int32 WorldPackets::Guild::GuildBankSwapItems::BankItemCount = 0

◆ BankOnly

bool WorldPackets::Guild::GuildBankSwapItems::BankOnly = false

◆ BankSlot

uint8 WorldPackets::Guild::GuildBankSwapItems::BankSlot = 0

◆ BankSlot1

uint8 WorldPackets::Guild::GuildBankSwapItems::BankSlot1 = 0

◆ BankTab

uint8 WorldPackets::Guild::GuildBankSwapItems::BankTab = 0

◆ BankTab1

uint8 WorldPackets::Guild::GuildBankSwapItems::BankTab1 = 0

◆ ContainerItemSlot

uint8 WorldPackets::Guild::GuildBankSwapItems::ContainerItemSlot = 0

◆ ContainerSlot

uint8 WorldPackets::Guild::GuildBankSwapItems::ContainerSlot = 0

◆ ItemID

uint32 WorldPackets::Guild::GuildBankSwapItems::ItemID = 0

◆ ItemID1

uint32 WorldPackets::Guild::GuildBankSwapItems::ItemID1 = 0

◆ StackCount

int32 WorldPackets::Guild::GuildBankSwapItems::StackCount = 0

◆ ToSlot

uint8 WorldPackets::Guild::GuildBankSwapItems::ToSlot = 0