TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Misc::SetCurrency Class Referencefinal

#include <MiscPackets.h>

Public Member Functions

 SetCurrency ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
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
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

bool SuppressChatLog = false
 
Optional< int32TrackedQuantity
 
int32 Quantity = 0
 
uint32 Flags = 0
 
int32 Type = 0
 
Optional< int32WeeklyQuantity
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Misc::SetCurrency::SetCurrency ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1496

Member Function Documentation

WorldPacket const * WorldPackets::Misc::SetCurrency::Write ( )
overridevirtual

Implements WorldPackets::Packet.

49 {
53  _worldPacket.WriteBit(WeeklyQuantity.is_initialized());
54  _worldPacket.WriteBit(TrackedQuantity.is_initialized());
56 
57  if (WeeklyQuantity)
59 
60  if (TrackedQuantity)
62 
64 
65  return &_worldPacket;
66 }
Optional< int32 > TrackedQuantity
Definition: MiscPackets.h:102
uint32 Flags
Definition: MiscPackets.h:104
void FlushBits()
Definition: ByteBuffer.h:150
int32 Quantity
Definition: MiscPackets.h:103
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
bool SuppressChatLog
Definition: MiscPackets.h:101
Optional< int32 > WeeklyQuantity
Definition: MiscPackets.h:106
uint32_t uint32
Definition: g3dmath.h:168
Type
Type of JSON value.
Definition: rapidjson.h:642

Member Data Documentation

uint32 WorldPackets::Misc::SetCurrency::Flags = 0
int32 WorldPackets::Misc::SetCurrency::Quantity = 0
bool WorldPackets::Misc::SetCurrency::SuppressChatLog = false
Optional<int32> WorldPackets::Misc::SetCurrency::TrackedQuantity
int32 WorldPackets::Misc::SetCurrency::Type = 0
Optional<int32> WorldPackets::Misc::SetCurrency::WeeklyQuantity

The documentation for this class was generated from the following files: