TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PartyPackets.cpp File Reference
#include "PartyPackets.h"
#include "Player.h"
#include "Pet.h"
#include "Vehicle.h"
#include "SpellAuras.h"
#include "SpellAuraEffects.h"
#include "ObjectMgr.h"
+ Include dependency graph for PartyPackets.cpp:

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupPhase const &phase)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupPhases const &phases)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupAura const &aura)
 
ByteBufferoperator<< (ByteBuffer &data, std::vector< WorldPackets::Party::GroupAura > const &auraList)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupPetStats const &petStats)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupMemberStats const &memberStats)
 
ByteBufferoperator<< (ByteBuffer &data, std::vector< WorldPackets::Party::GroupPlayerInfos > const &playerList)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupPlayerInfos const &playerInfos)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupLfgInfos const &lfgInfos)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupLootSettings const &lootSettings)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Party::GroupDifficultySettings const &difficultySettings)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupPhase const phase 
)
560 {
561  data << phase.Flags;
562  data << phase.Id;
563 
564  return data;
565 }
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupPhases const phases 
)
568 {
569  data << phases.PhaseShiftFlags;
570  data << int32(phases.List.size());
571  data << phases.PersonalGUID;
572 
573  for (WorldPackets::Party::GroupPhase const& phase : phases.List)
574  data << phase;
575 
576  return data;
577 }
Definition: PartyPackets.h:137
int32_t int32
Definition: g3dmath.h:167
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupAura const aura 
)
580 {
581  data << aura.SpellId;
582  data << aura.Scalings;
583  data << aura.EffectMask;
584 
585  data << int32(aura.EffectScales.size());
586  for (float scale : aura.EffectScales)
587  data << scale;
588 
589  return data;
590 }
int32_t int32
Definition: g3dmath.h:167
ByteBuffer& operator<< ( ByteBuffer data,
std::vector< WorldPackets::Party::GroupAura > const auraList 
)
593 {
594  data << int32(auraList.size());
595  for (WorldPackets::Party::GroupAura const& aura : auraList)
596  data << aura;
597 
598  return data;
599 }
Definition: PartyPackets.h:150
int32_t int32
Definition: g3dmath.h:167
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupPetStats const petStats 
)
602 {
603  data << petStats.GUID;
604 
605  data << petStats.ModelId;
606 
607  data << petStats.CurrentHealth;
608  data << petStats.MaxHealth;
609 
610  data << petStats.AuraList;
611 
612  data.WriteBits(petStats.Name.size(), 8);
613  data.FlushBits();
614  data.WriteString(petStats.Name);
615 
616  return data;
617 }
void FlushBits()
Definition: ByteBuffer.h:150
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupMemberStats const memberStats 
)
620 {
621  data << memberStats.GUID;
622 
623  for (uint8 i = 0; i < 2; i++)
624  data << memberStats.Unk704[i];
625 
626  data << memberStats.Status;
627 
628  data << memberStats.PowerType;
629 
630  data << memberStats.Unk322;
631 
632  data << memberStats.CurrentHealth;
633  data << memberStats.MaxHealth;
634 
635  data << memberStats.CurrentPower;
636  data << memberStats.MaxPower;
637 
638  data << memberStats.Level;
639 
640  data << memberStats.Unk200000;
641 
642  data << memberStats.ZoneID;
643 
644  data << memberStats.Unk2000000;
645  data << memberStats.Unk4000000;
646 
647  data << memberStats.PositionX;
648  data << memberStats.PositionY;
649  data << memberStats.PositionZ;
650 
651  data << memberStats.VehicleSeat;
652 
653  data << int32(memberStats.AuraList.size());
654 
655  data << memberStats.Phases;
656 
657  for (WorldPackets::Party::GroupAura const& aura : memberStats.AuraList)
658  data << aura;
659 
660  data.WriteBit(memberStats.PetStats.is_initialized());
661  data.FlushBits();
662 
663  if (memberStats.PetStats.is_initialized())
664  data << *memberStats.PetStats;
665 
666  return data;
667 }
Definition: PartyPackets.h:150
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
int32_t int32
Definition: Define.h:146
uint8_t uint8
Definition: Define.h:152

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
std::vector< WorldPackets::Party::GroupPlayerInfos > const playerList 
)
670 {
671  data << int32(playerList.size());
672 
673  for (WorldPackets::Party::GroupPlayerInfos const& playerInfos : playerList)
674  data << playerInfos;
675 
676  return data;
677 }
int32_t int32
Definition: g3dmath.h:167
Definition: PartyPackets.h:484
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupPlayerInfos const playerInfos 
)
680 {
681  data.WriteBits(playerInfos.Name.size(), 6);
682  data.FlushBits();
683 
684  data << playerInfos.GUID;
685  data << playerInfos.Status;
686  data << playerInfos.Subgroup;
687  data << playerInfos.Flags;
688  data << playerInfos.RolesAssigned;
689  data << playerInfos.Class;
690 
691  data.WriteString(playerInfos.Name);
692 
693  return data;
694 }
void FlushBits()
Definition: ByteBuffer.h:150
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupLfgInfos const lfgInfos 
)
697 {
698  data << lfgInfos.MyFlags;
699  data << lfgInfos.Slot;
700  data << lfgInfos.MyRandomSlot;
701  data << lfgInfos.MyPartialClear;
702  data << lfgInfos.MyGearDiff;
703  data << lfgInfos.MyStrangerCount;
704  data << lfgInfos.MyKickVoteCount;
705  data << lfgInfos.BootCount;
706 
707  data.WriteBit(lfgInfos.Aborted);
708  data.WriteBit(lfgInfos.MyFirstReward);
709  data.FlushBits();
710 
711  return data;
712 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupLootSettings const lootSettings 
)
715 {
716  data << lootSettings.Method;
717  data << lootSettings.LootMaster;
718  data << lootSettings.Threshold;
719 
720  return data;
721 }
ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Party::GroupDifficultySettings const difficultySettings 
)
724 {
725  data << difficultySettings.DungeonDifficultyID;
726  data << difficultySettings.RaidDifficultyID;
727  data << difficultySettings.LegacyRaidDifficultyID;
728 
729  return data;
730 }