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

#include <PetitionPackets.h>

Classes

struct  PetitionSignature
 

Public Member Functions

 ServerPetitionShowSignatures ()
 
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

ObjectGuid Item
 
ObjectGuid Owner
 
ObjectGuid OwnerAccountID
 
int32 PetitionID = 0
 
std::vector< PetitionSignatureSignatures
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Petition::ServerPetitionShowSignatures::ServerPetitionShowSignatures ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1331

Member Function Documentation

WorldPacket const * WorldPackets::Petition::ServerPetitionShowSignatures::Write ( )
overridevirtual

Implements WorldPackets::Packet.

101 {
102  _worldPacket << Item;
103  _worldPacket << Owner;
106 
107  _worldPacket << uint32(Signatures.size());
108  for (PetitionSignature signature : Signatures)
109  {
110  _worldPacket << signature.Signer;
111  _worldPacket << signature.Choice;
112  }
113 
114  return &_worldPacket;
115 }
ObjectGuid Owner
Definition: PetitionPackets.h:130
std::vector< PetitionSignature > Signatures
Definition: PetitionPackets.h:133
WorldPacket _worldPacket
Definition: Packet.h:43
int32 PetitionID
Definition: PetitionPackets.h:132
ObjectGuid OwnerAccountID
Definition: PetitionPackets.h:131
ObjectGuid Item
Definition: PetitionPackets.h:129
uint32_t uint32
Definition: g3dmath.h:168

Member Data Documentation

ObjectGuid WorldPackets::Petition::ServerPetitionShowSignatures::Item
ObjectGuid WorldPackets::Petition::ServerPetitionShowSignatures::Owner
ObjectGuid WorldPackets::Petition::ServerPetitionShowSignatures::OwnerAccountID
int32 WorldPackets::Petition::ServerPetitionShowSignatures::PetitionID = 0
std::vector<PetitionSignature> WorldPackets::Petition::ServerPetitionShowSignatures::Signatures

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