TrinityCore
WorldPackets Namespace Reference

Namespaces

 Achievement
 
 Addon
 
 AdventureJournal
 
 AdventureMap
 
 AreaTrigger
 
 Artifact
 
 AuctionHouse
 
 Auth
 
 Azerite
 
 Bank
 
 Battlefield
 
 Battleground
 
 Battlenet
 
 BattlePet
 
 BlackMarket
 
 Calendar
 
 Channel
 
 Character
 
 Chat
 
 ClientConfig
 
 Collections
 
 Combat
 
 CombatLog
 
 Duel
 
 EquipmentSet
 
 GameObject
 
 Garrison
 
 Guild
 
 Hotfix
 
 Inspect
 
 Instance
 
 Item
 
 LFG
 
 Loot
 
 Mail
 
 Misc
 
 Movement
 
 MythicPlus
 
 NPC
 
 Party
 
 Pet
 
 Petition
 
 Query
 
 Quest
 
 RaF
 
 Reputation
 
 Scenario
 
 Scenes
 
 Social
 
 Spells
 
 Strings
 
 System
 
 Talent
 
 Taxi
 
 Ticket
 
 Token
 
 Totem
 
 Toy
 
 Trade
 
 Transmogrification
 
 Vehicle
 
 VoidStorage
 
 Warden
 
 Who
 
 WorldState
 

Classes

class  Array
 
class  ClientPacket
 
class  Duration
 
class  IllegalHyperlinkException
 
class  InvalidHyperlinkException
 
class  InvalidStringValueException
 
class  InvalidUtf8ValueException
 
class  Null
 
class  Packet
 
class  PacketArrayMaxCapacityException
 
class  ServerPacket
 
class  String
 
class  Timestamp
 

Functions

ByteBufferoperator<< (ByteBuffer &data, Movement::MonsterSplineFilterKey const &monsterSplineFilterKey)
 
ByteBufferoperator<< (ByteBuffer &data, Movement::MonsterSplineFilter const &monsterSplineFilter)
 
ByteBufferoperator<< (ByteBuffer &data, Movement::MovementSpline const &movementSpline)
 
ByteBufferoperator<< (ByteBuffer &data, Movement::MovementMonsterSpline const &movementMonsterSpline)
 

Function Documentation

◆ operator<<() [1/4]

ByteBuffer & WorldPackets::operator<< ( ByteBuffer data,
Movement::MonsterSplineFilterKey const &  monsterSplineFilterKey 
)
207 {
208  data << int16(monsterSplineFilterKey.Idx);
209  data << uint16(monsterSplineFilterKey.Speed);
210 
211  return data;
212 }
uint16_t uint16
Definition: Define.h:144
int16_t int16
Definition: Define.h:140
+ Here is the caller graph for this function:

◆ operator<<() [2/4]

ByteBuffer & WorldPackets::operator<< ( ByteBuffer data,
Movement::MonsterSplineFilter const &  monsterSplineFilter 
)
215 {
216  data << uint32(monsterSplineFilter.FilterKeys.size());
217  data << float(monsterSplineFilter.BaseSpeed);
218  data << int16(monsterSplineFilter.StartOffset);
219  data << float(monsterSplineFilter.DistToPrevFilterKey);
220  data << int16(monsterSplineFilter.AddedToStart);
221  for (WorldPackets::Movement::MonsterSplineFilterKey const& filterKey : monsterSplineFilter.FilterKeys)
222  data << filterKey;
223  data.WriteBits(monsterSplineFilter.FilterFlags, 2);
224  data.FlushBits();
225 
226  return data;
227 }
void FlushBits()
Definition: ByteBuffer.h:155
void WriteBits(std::size_t value, int32 bits)
Definition: ByteBuffer.h:203
Definition: MovementPackets.h:62
uint32_t uint32
Definition: Define.h:143
int16_t int16
Definition: Define.h:140
+ Here is the call graph for this function:

◆ operator<<() [3/4]

ByteBuffer & WorldPackets::operator<< ( ByteBuffer data,
Movement::MovementSpline const &  movementSpline 
)
273 {
274  data << uint32(movementSpline.Flags);
275  data << int32(movementSpline.Elapsed);
276  data << uint32(movementSpline.MoveTime);
277  data << uint32(movementSpline.FadeObjectTime);
278  data << uint8(movementSpline.Mode);
279  data << movementSpline.TransportGUID;
280  data << int8(movementSpline.VehicleSeat);
281  data.WriteBits(movementSpline.Face, 2);
282  data.WriteBits(movementSpline.Points.size(), 16);
283  data.WriteBit(movementSpline.VehicleExitVoluntary);
284  data.WriteBit(movementSpline.Interpolate);
285  data.WriteBits(movementSpline.PackedDeltas.size(), 16);
286  data.WriteBit(movementSpline.SplineFilter.has_value());
287  data.WriteBit(movementSpline.SpellEffectExtraData.has_value());
288  data.WriteBit(movementSpline.JumpExtraData.has_value());
289  data.WriteBit(movementSpline.AnimTierTransition.has_value());
290  data.WriteBit(movementSpline.Unknown901.has_value());
291  data.FlushBits();
292 
293  if (movementSpline.SplineFilter)
294  data << *movementSpline.SplineFilter;
295 
296  switch (movementSpline.Face)
297  {
299  data << movementSpline.FaceSpot;
300  break;
302  data << float(movementSpline.FaceDirection);
303  data << movementSpline.FaceGUID;
304  break;
306  data << float(movementSpline.FaceDirection);
307  break;
308  }
309 
310  for (TaggedPosition<Position::XYZ> const& pos : movementSpline.Points)
311  data << pos;
312 
313  for (TaggedPosition<Position::PackedXYZ> const& pos : movementSpline.PackedDeltas)
314  data << pos;
315 
316  if (movementSpline.SpellEffectExtraData)
317  data << *movementSpline.SpellEffectExtraData;
318 
319  if (movementSpline.JumpExtraData)
320  data << *movementSpline.JumpExtraData;
321 
322  if (movementSpline.AnimTierTransition)
323  data << *movementSpline.AnimTierTransition;
324 
325  if (movementSpline.Unknown901)
326  data << *movementSpline.Unknown901;
327 
328  return data;
329 }
Definition: MovementTypedefs.h:38
int8_t int8
Definition: Define.h:141
void FlushBits()
Definition: ByteBuffer.h:155
void WriteBits(std::size_t value, int32 bits)
Definition: ByteBuffer.h:203
bool WriteBit(bool bit)
Definition: ByteBuffer.h:175
int32_t int32
Definition: Define.h:139
uint32_t uint32
Definition: Define.h:143
uint8_t uint8
Definition: Define.h:145
Definition: MovementTypedefs.h:37
Definition: MovementTypedefs.h:39
+ Here is the call graph for this function:

◆ operator<<() [4/4]

ByteBuffer & WorldPackets::operator<< ( ByteBuffer data,
Movement::MovementMonsterSpline const &  movementMonsterSpline 
)
332 {
333  data << movementMonsterSpline.ID;
334  data << movementMonsterSpline.Destination;
335  data.WriteBit(movementMonsterSpline.CrzTeleport);
336  data.WriteBits(movementMonsterSpline.StopDistanceTolerance, 3);
337 
338  data << movementMonsterSpline.Move;
339 
340  return data;
341 }
std::vector< uint8 > && Move() noexcept
Definition: ByteBuffer.h:94
void WriteBits(std::size_t value, int32 bits)
Definition: ByteBuffer.h:203
bool WriteBit(bool bit)
Definition: ByteBuffer.h:175
+ Here is the call graph for this function: