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

#include <PartyPackets.h>

Public Member Functions

 PartyInvite ()
 
WorldPacket constWrite () override
 
void Initialize (Player *const inviter, int32 proposedRoles, bool canAccept)
 
- 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 MightCRZYou = false
 
bool MustBeBNetFriend = false
 
bool AllowMultipleRoles = false
 
bool Unk2 = false
 
int16 Unk1 = 0
 
bool CanAccept = false
 
ObjectGuid InviterGUID
 
ObjectGuid InviterBNetAccountId
 
std::string InviterName
 
bool IsXRealm = false
 
bool IsLocal = true
 
uint32 InviterVirtualRealmAddress = 0u
 
std::string InviterRealmNameActual
 
std::string InviterRealmNameNormalized
 
int32 ProposedRoles = 0
 
int32 LfgCompletedMask = 0
 
std::vector< int32LfgSlots
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Party::PartyInvite::PartyInvite ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1322

Member Function Documentation

void WorldPackets::Party::PartyInvite::Initialize ( Player *const  inviter,
int32  proposedRoles,
bool  canAccept 
)
97 {
98  CanAccept = canAccept;
99 
100  InviterName = inviter->GetName();
101  InviterGUID = inviter->GetGUID();
102  InviterBNetAccountId = inviter->GetSession()->GetAccountGUID();
103 
104  ProposedRoles = proposedRoles;
105 
108  InviterRealmNameNormalized = sObjectMgr->GetNormalizedRealmName(realm.Id.Realm);
109 }
ObjectGuid InviterGUID
Definition: PartyPackets.h:75
uint32 Realm
Definition: Realm.h:53
std::string InviterRealmNameActual
Definition: PartyPackets.h:83
int32 ProposedRoles
Definition: PartyPackets.h:87
Realm realm
Definition: World.cpp:3485
#define sObjectMgr
Definition: ObjectMgr.h:1567
uint32 InviterVirtualRealmAddress
Definition: PartyPackets.h:82
std::string InviterRealmNameNormalized
Definition: PartyPackets.h:84
Battlenet::RealmHandle Id
Definition: Realm.h:86
std::string InviterName
Definition: PartyPackets.h:77
bool CanAccept
Definition: PartyPackets.h:72
ObjectGuid InviterBNetAccountId
Definition: PartyPackets.h:76
uint32 GetVirtualRealmAddress()
Definition: World.cpp:3487

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

WorldPacket const * WorldPackets::Party::PartyInvite::Write ( )
overridevirtual

Implements WorldPackets::Packet.

60 {
61  // Order guessed
67 
69 
72 
74  _worldPacket << Unk1;
75 
78 
83 
85  _worldPacket << int32(LfgSlots.size());
87 
89 
90  for (int32 LfgSlot : LfgSlots)
91  _worldPacket << LfgSlot;
92 
93  return &_worldPacket;
94 }
ObjectGuid InviterGUID
Definition: PartyPackets.h:75
std::string InviterRealmNameActual
Definition: PartyPackets.h:83
int32 ProposedRoles
Definition: PartyPackets.h:87
bool IsXRealm
Definition: PartyPackets.h:80
int32 LfgCompletedMask
Definition: PartyPackets.h:88
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
bool IsLocal
Definition: PartyPackets.h:81
int16 Unk1
Definition: PartyPackets.h:70
std::vector< int32 > LfgSlots
Definition: PartyPackets.h:89
uint32 InviterVirtualRealmAddress
Definition: PartyPackets.h:82
std::string InviterRealmNameNormalized
Definition: PartyPackets.h:84
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::string InviterName
Definition: PartyPackets.h:77
bool MightCRZYou
Definition: PartyPackets.h:66
int32_t int32
Definition: Define.h:146
bool CanAccept
Definition: PartyPackets.h:72
ObjectGuid InviterBNetAccountId
Definition: PartyPackets.h:76
int32_t int32
Definition: g3dmath.h:167
bool Unk2
Definition: PartyPackets.h:69
bool AllowMultipleRoles
Definition: PartyPackets.h:68
bool MustBeBNetFriend
Definition: PartyPackets.h:67
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool WorldPackets::Party::PartyInvite::AllowMultipleRoles = false
bool WorldPackets::Party::PartyInvite::CanAccept = false
ObjectGuid WorldPackets::Party::PartyInvite::InviterBNetAccountId
ObjectGuid WorldPackets::Party::PartyInvite::InviterGUID
std::string WorldPackets::Party::PartyInvite::InviterName
std::string WorldPackets::Party::PartyInvite::InviterRealmNameActual
std::string WorldPackets::Party::PartyInvite::InviterRealmNameNormalized
uint32 WorldPackets::Party::PartyInvite::InviterVirtualRealmAddress = 0u
bool WorldPackets::Party::PartyInvite::IsLocal = true
bool WorldPackets::Party::PartyInvite::IsXRealm = false
int32 WorldPackets::Party::PartyInvite::LfgCompletedMask = 0
std::vector<int32> WorldPackets::Party::PartyInvite::LfgSlots
bool WorldPackets::Party::PartyInvite::MightCRZYou = false
bool WorldPackets::Party::PartyInvite::MustBeBNetFriend = false
int32 WorldPackets::Party::PartyInvite::ProposedRoles = 0
int16 WorldPackets::Party::PartyInvite::Unk1 = 0
bool WorldPackets::Party::PartyInvite::Unk2 = false

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