refactor(Core/Misc): headers cleanup (#9259)

This commit is contained in:
Kargatum
2021-11-22 17:24:39 +07:00
committed by GitHub
parent 699d4835df
commit f62664c987
775 changed files with 1294 additions and 1165 deletions

View File

@@ -15,6 +15,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Map.h"
#include "Battleground.h"
#include "CellImpl.h"
#include "Chat.h"
@@ -26,18 +27,18 @@
#include "Group.h"
#include "InstanceScript.h"
#include "LFGMgr.h"
#include "Map.h"
#include "MapInstanced.h"
#include "Metric.h"
#include "Object.h"
#include "ObjectAccessor.h"
#include "ObjectGridLoader.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "ScriptMgr.h"
#include "Transport.h"
#include "Vehicle.h"
#include "VMapFactory.h"
#include "VMapMgr2.h"
#include "Vehicle.h"
#ifdef ELUNA
#include "LuaEngine.h"

View File

@@ -19,8 +19,8 @@
#define ACORE_MAP_H
#include "Cell.h"
#include "DataMap.h"
#include "DBCStructure.h"
#include "DataMap.h"
#include "Define.h"
#include "DynamicTree.h"
#include "GameObjectModel.h"
@@ -59,6 +59,7 @@ class Transport;
class StaticTransport;
class MotionTransport;
class PathGenerator;
namespace Acore
{
struct ObjectUpdater;
@@ -440,6 +441,7 @@ public:
[[nodiscard]] bool IsBattleground() const { return i_mapEntry && i_mapEntry->IsBattleground(); }
[[nodiscard]] bool IsBattleArena() const { return i_mapEntry && i_mapEntry->IsBattleArena(); }
[[nodiscard]] bool IsBattlegroundOrArena() const { return i_mapEntry && i_mapEntry->IsBattlegroundOrArena(); }
bool GetEntrancePos(int32& mapid, float& x, float& y)
{
if (!i_mapEntry)

View File

@@ -15,12 +15,12 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "MapInstanced.h"
#include "Battleground.h"
#include "Group.h"
#include "InstanceSaveMgr.h"
#include "MapInstanced.h"
#include "MapMgr.h"
#include "MMapFactory.h"
#include "MapMgr.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "VMapFactory.h"

View File

@@ -15,6 +15,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "MapMgr.h"
#include "AvgDiffTracker.h"
#include "Chat.h"
#include "DatabaseEnv.h"
@@ -22,16 +23,15 @@
#include "Group.h"
#include "InstanceSaveMgr.h"
#include "InstanceScript.h"
#include "Language.h"
#include "LFGMgr.h"
#include "Language.h"
#include "Log.h"
#include "MapInstanced.h"
#include "MapMgr.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "ScriptMgr.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "Transport.h"
#include "World.h"
#include "WorldPacket.h"

View File

@@ -21,9 +21,9 @@
#include "Common.h"
#include "Define.h"
#include "Map.h"
#include "MapInstanced.h"
#include "MapUpdater.h"
#include "Object.h"
#include "MapInstanced.h"
#include <mutex>

View File

@@ -15,10 +15,10 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "MapUpdater.h"
#include "AvgDiffTracker.h"
#include "LFGMgr.h"
#include "Map.h"
#include "MapUpdater.h"
#include "Metric.h"
class UpdateRequest

View File

@@ -15,11 +15,11 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "TransportMgr.h"
#include "InstanceScript.h"
#include "MapMgr.h"
#include "MoveSpline.h"
#include "Transport.h"
#include "TransportMgr.h"
TransportTemplate::~TransportTemplate()
{

View File

@@ -19,6 +19,7 @@
#define TRANSPORTMGR_H
#include "DBCStores.h"
#include "ObjectGuid.h"
#include "Spline.h"
#include <G3D/Quat.h>