Core/Misc: Don't include CharacterPackets.h in SpellPackets.h

This commit is contained in:
Shauren
2022-02-12 01:23:30 +01:00
parent 56275a7db3
commit f6280163c6
2 changed files with 16 additions and 4 deletions

View File

@@ -16,6 +16,7 @@
*/
#include "MovementPackets.h"
#include "CharacterPackets.h"
#include "SpellPackets.h"
void WorldPackets::Spells::CancelAura::Read()
@@ -885,6 +886,13 @@ void WorldPackets::Spells::GetMirrorImageData::Read()
_worldPacket >> DisplayID;
}
WorldPackets::Spells::MirrorImageComponentedData::MirrorImageComponentedData()
: ServerPacket(SMSG_MIRROR_IMAGE_COMPONENTED_DATA, 8 + 4 + 8 * 1 + 8 + 11 * 4)
{
}
WorldPackets::Spells::MirrorImageComponentedData::~MirrorImageComponentedData() = default;
WorldPacket const* WorldPackets::Spells::MirrorImageComponentedData::Write()
{
_worldPacket << UnitGUID;

View File

@@ -18,16 +18,19 @@
#ifndef SpellPackets_h__
#define SpellPackets_h__
#include "CharacterPackets.h"
#include "CombatLogPacketsCommon.h"
#include "MovementInfo.h"
#include "ObjectGuid.h"
#include "Optional.h"
#include "PacketUtilities.h"
#include "Position.h"
#include "SharedDefines.h"
#include <array>
namespace UF
{
struct ChrCustomizationChoice;
}
namespace WorldPackets
{
namespace Spells
@@ -893,7 +896,8 @@ namespace WorldPackets
class MirrorImageComponentedData final : public ServerPacket
{
public:
MirrorImageComponentedData() : ServerPacket(SMSG_MIRROR_IMAGE_COMPONENTED_DATA, 8 + 4 + 8 * 1 + 8 + 11 * 4) { }
MirrorImageComponentedData();
~MirrorImageComponentedData();
WorldPacket const* Write() override;
@@ -903,7 +907,7 @@ namespace WorldPackets
uint8 RaceID = 0;
uint8 Gender = 0;
uint8 ClassID = 0;
std::vector<Character::ChrCustomizationChoice> Customizations;
std::vector<UF::ChrCustomizationChoice> Customizations;
ObjectGuid GuildGUID;
std::vector<int32> ItemDisplayID;