TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TicketPackets.cpp File Reference
#include "LFGPackets.h"
#include "TicketPackets.h"
#include "PacketUtilities.h"
#include "SupportMgr.h"
+ Include dependency graph for TicketPackets.cpp:

Functions

ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Ticket::SupportTicketHeader &header)
 
ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketChatLine &line)
 
ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketChatLog &chatlog)
 
ByteBufferoperator>> (ByteBuffer &data, Optional< WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketMailInfo > &mail)
 
ByteBufferoperator>> (ByteBuffer &data, Optional< WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketCalendarEventInfo > &event)
 
ByteBufferoperator>> (ByteBuffer &data, Optional< WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketPetInfo > &pet)
 
ByteBufferoperator>> (ByteBuffer &data, Optional< WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketGuildInfo > &guild)
 
ByteBufferoperator>> (ByteBuffer &data, Optional< WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketLFGListSearchResult > &lfgListSearchResult)
 
ByteBufferoperator>> (ByteBuffer &data, Optional< WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketLFGListApplicant > &lfgListApplicant)
 
ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Ticket::Complaint::ComplaintOffender &complaintOffender)
 
ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Ticket::Complaint::ComplaintChat &chat)
 

Function Documentation

ByteBuffer& operator>> ( ByteBuffer data,
WorldPackets::Ticket::SupportTicketHeader header 
)
26 {
27  data >> header.MapID;
28  data >> header.Position;
29  data >> header.Facing;
30 
31  return data;
32 }
int32 MapID
Definition: TicketPackets.h:31
G3D::Vector3 Position
Definition: TicketPackets.h:32
float Facing
Definition: TicketPackets.h:33
93 {
94  data >> line.Timestamp;
95  line.Text = data.ReadString(data.ReadBits(12));
96 
97  return data;
98 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524

+ Here is the call graph for this function:

101 {
102  uint32 linesCount = data.read<uint32>();
103 
104  for (uint32 i = 0; i < linesCount; i++)
105  chatlog.Lines.emplace_back(data);
106 
107  bool hasReportLineIndex = data.ReadBit();
108  if (hasReportLineIndex)
109  chatlog.ReportLineIndex = data.read<uint32>();
110 
111  data.ResetBitPos();
112 
113  return data;
114 }
void ResetBitPos()
Definition: ByteBuffer.h:161
uint32_t uint32
Definition: Define.h:150
Optional< uint32 > ReportLineIndex
Definition: TicketPackets.h:131
std::vector< SupportTicketChatLine > Lines
Definition: TicketPackets.h:130
bool ReadBit()
Definition: ByteBuffer.h:186
T read()
Definition: ByteBuffer.h:484

+ Here is the call graph for this function:

117 {
118  mail = boost::in_place();
119 
120  data >> mail->MailID;
121  uint32 bodyLength = data.ReadBits(13);
122  uint32 subjectLength = data.ReadBits(9);
123  mail->MailBody = data.ReadString(bodyLength);
124  mail->MailSubject = data.ReadString(subjectLength);
125 
126  return data;
127 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150

+ Here is the call graph for this function:

130 {
131  event = boost::in_place();
132 
133  data >> event->EventID;
134  data >> event->InviteID;
135  event->EventTitle = data.ReadString(data.ReadBits(8));
136 
137  return data;
138 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524

+ Here is the call graph for this function:

141 {
142  pet = boost::in_place();
143 
144  data >> pet->PetID;
145  pet->PetName = data.ReadString(data.ReadBits(8));
146 
147  return data;
148 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524

+ Here is the call graph for this function:

151 {
152  guild = boost::in_place();
153 
154  uint32 nameLength = data.ReadBits(7);
155  data >> guild->GuildID;
156  guild->GuildName = data.ReadString(nameLength);
157 
158  return data;
159 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150

+ Here is the call graph for this function:

162 {
163  lfgListSearchResult = boost::in_place();
164 
165  data >> lfgListSearchResult->RideTicket;
166  data >> lfgListSearchResult->GroupFinderActivityID;
167  data >> lfgListSearchResult->LastTitleAuthorGuid;
168  data >> lfgListSearchResult->LastDescriptionAuthorGuid;
169  data >> lfgListSearchResult->LastVoiceChatAuthorGuid;
170 
171  uint32 titleLength = data.ReadBits(8);
172  uint32 descriptionLength = data.ReadBits(11);
173  uint32 voiceChatLength = data.ReadBits(8);
174 
175  lfgListSearchResult->Title = data.ReadString(titleLength);
176  lfgListSearchResult->Description = data.ReadString(descriptionLength);
177  lfgListSearchResult->VoiceChat = data.ReadString(voiceChatLength);
178 
179  return data;
180 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150

+ Here is the call graph for this function:

183 {
184  lfgListApplicant = boost::in_place();
185 
186  data >> lfgListApplicant->RideTicket;
187  lfgListApplicant->Comment = data.ReadString(data.ReadBits(9));
188 
189  return data;
190 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524

+ Here is the call graph for this function:

ByteBuffer& operator>> ( ByteBuffer data,
WorldPackets::Ticket::Complaint::ComplaintOffender complaintOffender 
)
231 {
232  data >> complaintOffender.PlayerGuid;
233  data >> complaintOffender.RealmAddress;
234  data >> complaintOffender.TimeSinceOffence;
235 
236  return data;
237 }
uint32 RealmAddress
Definition: TicketPackets.h:202
ObjectGuid PlayerGuid
Definition: TicketPackets.h:201
uint32 TimeSinceOffence
Definition: TicketPackets.h:203
240 {
241  data >> chat.Command;
242  data >> chat.ChannelID;
243  chat.MessageLog = data.ReadString(data.ReadBits(12));
244 
245  return data;
246 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
uint32 Command
Definition: TicketPackets.h:208
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
std::string MessageLog
Definition: TicketPackets.h:210
uint32 ChannelID
Definition: TicketPackets.h:209

+ Here is the call graph for this function: