refactor(src/server/game): optimise imports (#20541)

This commit is contained in:
Francesco Borzì
2024-11-13 11:37:20 +01:00
committed by GitHub
parent b2ddd10369
commit a9f0f371e5
45 changed files with 44 additions and 35 deletions

View File

@@ -22,6 +22,7 @@
#include "Duration.h"
#include "Log.h"
#include "MotdMgr.h"
#include "QueryResult.h"
#include "SRP6.h"
#include "Util.h"
#include "World.h"

View File

@@ -18,9 +18,7 @@
#ifndef ACORE_SMARTSCRIPT_H
#define ACORE_SMARTSCRIPT_H
#include "Common.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "GridNotifiers.h"
#include "SmartScriptMgr.h"
#include "Spell.h"

View File

@@ -20,12 +20,11 @@
#include "Common.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "DBCStores.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Optional.h"
#include "Spell.h"
#include "SpellMgr.h"
#include "Unit.h"
#include <limits>
typedef uint32 SAIBool;

View File

@@ -20,7 +20,6 @@
#include "Battlefield.h"
#include "Log.h"
#include "ObjectAccessor.h"
#include "World.h"
class Group;

View File

@@ -19,9 +19,10 @@
#define __BATTLEGROUNDQUEUE_H
#include "Battleground.h"
#include "Common.h"
#include "DBCEnums.h"
#include "EventProcessor.h"
#include "ObjectGuid.h"
#include "SharedDefines.h"
#include <array>
constexpr auto COUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME = 10;

View File

@@ -18,7 +18,6 @@
#ifndef _CHANNEL_H
#define _CHANNEL_H
#include "Common.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include <string>

View File

@@ -23,6 +23,7 @@
#include "SharedDefines.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "World.h"
using namespace Acore::Hyperlinks;

View File

@@ -18,8 +18,6 @@
#ifndef _LFGQUEUE_H
#define _LFGQUEUE_H
#include <utility>
#include "LFG.h"
namespace lfg

View File

@@ -22,10 +22,8 @@
#include "CharmInfo.h"
#include "Common.h"
#include "CreatureData.h"
#include "DatabaseEnv.h"
#include "LootMgr.h"
#include "Unit.h"
#include "World.h"
#include <list>
class SpellInfo;

View File

@@ -21,6 +21,7 @@
#include "Log.h"
#include "MoveSplineInit.h"
#include "ObjectMgr.h"
#include "QueryResult.h"
#include "WaypointMgr.h"
FormationMgr::~FormationMgr()

View File

@@ -19,6 +19,7 @@
#define _FORMATIONS_H
#include "Define.h"
#include "ObjectGuid.h"
#include "Unit.h"
#include <map>
#include <unordered_map>

View File

@@ -20,8 +20,9 @@
#include "Common.h"
#include "NPCHandler.h"
#include "Object.h"
#include "ObjectGuid.h"
#include "QuestDef.h"
#include <map>
class WorldSession;
class ObjectGuid;

View File

@@ -19,7 +19,6 @@
#define AZEROTHCORE_GAMEOBJECT_H
#include "Common.h"
#include "DatabaseEnv.h"
#include "G3D/Quat.h"
#include "GameObjectData.h"
#include "LootMgr.h"

View File

@@ -19,9 +19,9 @@
#define GAMEOBJECTDATA_H
#include "SharedDefines.h"
#include "WorldPacket.h"
#include <string>
#include <array>
#include <vector>
#include <string>
#define MAX_GAMEOBJECT_QUEST_ITEMS 6
#define MAX_GO_STATE 3

View File

@@ -20,6 +20,7 @@
#include "DatabaseEnv.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "QueryResult.h"
#include "Util.h"
#include <cmath>
#include <functional>

View File

@@ -19,6 +19,7 @@
#include "ByteBuffer.h"
#include "Geometry.h"
#include "GridDefines.h"
#include "Random.h"
#include <G3D/g3dmath.h>
#include <sstream>

View File

@@ -19,7 +19,9 @@
#define CinematicMgr_h__
#include "Define.h"
#include "Object.h"
#include "Position.h"
#include "TemporarySummon.h"
#include <vector>
constexpr auto CINEMATIC_UPDATEDIFF = 500;
constexpr auto CINEMATIC_LOOKAHEAD = 2000;

View File

@@ -18,7 +18,8 @@
#ifndef _CHARMINFO_H
#define _CHARMINFO_H
#include "Object.h"
#include "Define.h"
#include "ObjectGuid.h"
#define MAX_SPELL_CHARM 4
#define MAX_SPELL_VEHICLE 6

View File

@@ -24,7 +24,6 @@
#include "Grid.h"
#include "GridReference.h"
#include "Timer.h"
#include "Util.h"
template
<

View File

@@ -22,7 +22,6 @@
#include "ObjectMgr.h"
#include "Optional.h"
#include "Player.h"
#include "WorldPacket.h"
#include <set>
#include <unordered_map>

View File

@@ -19,6 +19,7 @@
#include "DatabaseEnv.h"
#include "ObjectMgr.h"
#include "PreparedStatement.h"
#include "QueryResult.h"
LootItemStorage::LootItemStorage()
{

View File

@@ -31,6 +31,7 @@
#include "MapInstanced.h"
#include "Metric.h"
#include "MiscPackets.h"
#include "MMapFactory.h"
#include "Object.h"
#include "ObjectAccessor.h"
#include "ObjectGridLoader.h"

View File

@@ -19,6 +19,7 @@
#include "InstanceScript.h"
#include "MapMgr.h"
#include "MoveSpline.h"
#include "QueryResult.h"
#include "Transport.h"
TransportTemplate::~TransportTemplate()

View File

@@ -18,7 +18,7 @@
#ifndef __DYNAMICVISIBILITY_H
#define __DYNAMICVISIBILITY_H
#include "Common.h"
#include "Define.h"
struct VisibilitySettingData
{

View File

@@ -19,7 +19,9 @@
#define ACORE_MOTIONMASTER_H
#include "Common.h"
#include "Object.h"
#include "ObjectGuid.h"
#include "PathGenerator.h"
#include "Position.h"
#include "SharedDefines.h"
#include "Spline/MoveSpline.h"
#include <optional>

View File

@@ -18,7 +18,9 @@
#ifndef ACORE_FLEEINGMOVEMENTGENERATOR_H
#define ACORE_FLEEINGMOVEMENTGENERATOR_H
#include "Creature.h"
#include "MovementGenerator.h"
#include "Timer.h"
template<class T>
class FleeingMovementGenerator : public MovementGeneratorMedium< T, FleeingMovementGenerator<T> >

View File

@@ -20,7 +20,6 @@
#include "DetourNavMesh.h"
#include "DetourNavMeshQuery.h"
#include "MMapFactory.h"
#include "MMapMgr.h"
#include "MapDefines.h"
#include "MoveSplineInitArgs.h"

View File

@@ -18,7 +18,7 @@
#ifndef ACORE_POINTMOVEMENTGENERATOR_H
#define ACORE_POINTMOVEMENTGENERATOR_H
#include "FollowerReference.h"
#include "Creature.h"
#include "MovementGenerator.h"
template<class T>

View File

@@ -25,6 +25,7 @@
#include "ObjectAccessor.h"
#include "Spell.h"
#include "Util.h"
#include "World.h"
template<class T>
RandomMovementGenerator<T>::~RandomMovementGenerator() { }

View File

@@ -20,6 +20,7 @@
#include "MovementGenerator.h"
#include "PathGenerator.h"
#include "Timer.h"
#define RANDOM_POINTS_NUMBER 12
#define RANDOM_LINKS_COUNT 7

View File

@@ -18,7 +18,7 @@
#ifndef ACORE_WAYPOINTMANAGER_H
#define ACORE_WAYPOINTMANAGER_H
#include "Common.h"
#include "Define.h"
#include <optional>
#include <unordered_map>
#include <vector>

View File

@@ -20,6 +20,7 @@
#include "Log.h"
#include "MapMgr.h"
#include "ObjectMgr.h"
#include "QueryResult.h"
#include "Transport.h"
////////////////////////////////////////////////////////////

View File

@@ -18,10 +18,9 @@
#ifndef __ACORE_REPUTATION_MGR_H
#define __ACORE_REPUTATION_MGR_H
#include "Common.h"
#include "DatabaseEnvFwd.h"
#include "DBCStructure.h"
#include "Language.h"
#include "QueryResult.h"
#include "SharedDefines.h"
#include <map>

View File

@@ -20,14 +20,12 @@
#include "GridNotifiers.h"
#include "Map.h"
#include "MapMgr.h"
#include "MapRefMgr.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Transport.h"
#include "WaypointMgr.h"
#include "World.h"
/// Put scripts in the execution queue
void Map::ScriptsStart(ScriptMapMap const& scripts, uint32 id, Object* source, Object* target)

View File

@@ -18,6 +18,7 @@
#ifndef SCRIPT_OBJECT_GLOBAL_SCRIPT_H_
#define SCRIPT_OBJECT_GLOBAL_SCRIPT_H_
#include "DatabaseEnvFwd.h"
#include "DBCEnums.h"
#include "ObjectGuid.h"
#include "ScriptObject.h"

View File

@@ -20,6 +20,7 @@
#include "ScriptObject.h"
#include <vector>
#include <memory> // NOTE: this import is NEEDED (even though some IDEs report it as unused)
enum ServerHook
{

View File

@@ -18,8 +18,8 @@
#ifndef _SCRIPT_OBJECT_H_
#define _SCRIPT_OBJECT_H_
#include "DatabaseEnvFwd.h"
#include "ScriptObjectFwd.h"
#include <string>
//#include "Duration.h"
//#include "LFG.h"

View File

@@ -18,11 +18,13 @@
#ifndef __SPELL_H
#define __SPELL_H
#include "ConditionMgr.h"
#include "GridDefines.h"
#include "ObjectMgr.h"
#include "LootMgr.h"
#include "PathGenerator.h"
#include "SharedDefines.h"
#include "SpellInfo.h"
#include "Unit.h"
class Unit;
class Player;

View File

@@ -21,7 +21,6 @@
#include "Define.h"
#include "Duration.h"
#include <array>
#include <string>
constexpr auto AVG_DIFF_COUNT = 500;

View File

@@ -19,6 +19,7 @@
#include "DBCStores.h"
#include "Database/DatabaseEnv.h"
#include "Log.h"
#include "QueryResult.h"
#include "SpellMgr.h"
#include "World.h"

View File

@@ -19,7 +19,6 @@
#define _PLAYER_DUMP_H
#include "ObjectGuid.h"
#include <map>
#include <set>
enum DumpTableType

View File

@@ -18,6 +18,7 @@
#include "WardenCheckMgr.h"
#include "Database/DatabaseEnv.h"
#include "Log.h"
#include "QueryResult.h"
#include "Util.h"
#include "Warden.h"
#include "WorldSession.h"

View File

@@ -26,7 +26,6 @@
#include "Player.h"
#include "Weather.h"
#include "WorldSession.h"
#include <memory>
namespace WeatherMgr
{

View File

@@ -22,10 +22,10 @@
#ifndef __WORLD_H
#define __WORLD_H
#include "DatabaseEnvFwd.h"
#include "IWorld.h"
#include "LockedQueue.h"
#include "ObjectGuid.h"
#include "QueryResult.h"
#include "SharedDefines.h"
#include "Timer.h"
#include <atomic>

View File

@@ -34,6 +34,7 @@
#include "Language.h"
#include "MapMgr.h"
#include "MiscPackets.h"
#include "MMapFactory.h"
#include "MovementGenerator.h"
#include "ObjectAccessor.h"
#include "Pet.h"