mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
refactor(Core/Common): alphabetical sorting inlcudes (#6282)
- Part https://github.com/WarheadCore/WarheadBand/pull/37
This commit is contained in:
@@ -7,9 +7,9 @@
|
|||||||
#ifndef _BIH_H
|
#ifndef _BIH_H
|
||||||
#define _BIH_H
|
#define _BIH_H
|
||||||
|
|
||||||
#include "G3D/Vector3.h"
|
|
||||||
#include "G3D/Ray.h"
|
|
||||||
#include "G3D/AABox.h"
|
#include "G3D/AABox.h"
|
||||||
|
#include "G3D/Ray.h"
|
||||||
|
#include "G3D/Vector3.h"
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
#ifndef _BIH_WRAP
|
#ifndef _BIH_WRAP
|
||||||
#define _BIH_WRAP
|
#define _BIH_WRAP
|
||||||
|
|
||||||
#include "G3D/Table.h"
|
#include "BoundingIntervalHierarchy.h"
|
||||||
#include "G3D/Array.h"
|
#include "G3D/Array.h"
|
||||||
#include "G3D/Set.h"
|
#include "G3D/Set.h"
|
||||||
#include "BoundingIntervalHierarchy.h"
|
#include "G3D/Table.h"
|
||||||
|
|
||||||
template<class T, class BoundsFunc = BoundsTrait<T>>
|
template<class T, class BoundsFunc = BoundsTrait<T>>
|
||||||
class BIHWrap
|
class BIHWrap
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
#include "DynamicTree.h"
|
#include "DynamicTree.h"
|
||||||
#include "BoundingIntervalHierarchyWrapper.h"
|
#include "BoundingIntervalHierarchyWrapper.h"
|
||||||
|
#include "GameObjectModel.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
#include "ModelInstance.h"
|
||||||
#include "RegularGrid.h"
|
#include "RegularGrid.h"
|
||||||
#include "Timer.h"
|
#include "Timer.h"
|
||||||
#include "GameObjectModel.h"
|
|
||||||
#include "ModelInstance.h"
|
|
||||||
#include <G3D/AABox.h>
|
#include <G3D/AABox.h>
|
||||||
#include <G3D/Ray.h>
|
#include <G3D/Ray.h>
|
||||||
#include <G3D/Vector3.h>
|
#include <G3D/Vector3.h>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#ifndef _IMMAPMANAGER_H
|
#ifndef _IMMAPMANAGER_H
|
||||||
#define _IMMAPMANAGER_H
|
#define _IMMAPMANAGER_H
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
// Interface for IMMapManger
|
// Interface for IMMapManger
|
||||||
namespace MMAP
|
namespace MMAP
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#ifndef _IVMAPMANAGER_H
|
#ifndef _IVMAPMANAGER_H
|
||||||
#define _IVMAPMANAGER_H
|
#define _IVMAPMANAGER_H
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
//===========================================================
|
//===========================================================
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MMapFactory.h"
|
#include "MMapFactory.h"
|
||||||
#include <set>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <set>
|
||||||
|
|
||||||
namespace MMAP
|
namespace MMAP
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
#ifndef _MMAP_FACTORY_H
|
#ifndef _MMAP_FACTORY_H
|
||||||
#define _MMAP_FACTORY_H
|
#define _MMAP_FACTORY_H
|
||||||
|
|
||||||
#include "MMapManager.h"
|
|
||||||
#include "DetourAlloc.h"
|
#include "DetourAlloc.h"
|
||||||
#include "DetourNavMesh.h"
|
|
||||||
#include "DetourExtended.h"
|
#include "DetourExtended.h"
|
||||||
|
#include "DetourNavMesh.h"
|
||||||
|
#include "MMapManager.h"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace MMAP
|
namespace MMAP
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#include "MMapManager.h"
|
#include "MMapManager.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include "MapDefines.h"
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
#include "MapDefines.h"
|
||||||
#include "StringFormat.h"
|
#include "StringFormat.h"
|
||||||
|
|
||||||
namespace MMAP
|
namespace MMAP
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "DetourAlloc.h"
|
#include "DetourAlloc.h"
|
||||||
#include "DetourNavMesh.h"
|
|
||||||
#include "DetourExtended.h"
|
#include "DetourExtended.h"
|
||||||
#include <unordered_map>
|
#include "DetourNavMesh.h"
|
||||||
#include <shared_mutex>
|
#include <shared_mutex>
|
||||||
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// memory management
|
// memory management
|
||||||
|
|||||||
@@ -16,18 +16,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "VMapManager2.h"
|
#include "VMapManager2.h"
|
||||||
|
#include "Errors.h"
|
||||||
|
#include "Log.h"
|
||||||
|
#include "MapDefines.h"
|
||||||
#include "MapTree.h"
|
#include "MapTree.h"
|
||||||
#include "ModelInstance.h"
|
#include "ModelInstance.h"
|
||||||
#include "WorldModel.h"
|
|
||||||
#include "MapDefines.h"
|
|
||||||
#include "Log.h"
|
|
||||||
#include "VMapDefinitions.h"
|
#include "VMapDefinitions.h"
|
||||||
#include "Errors.h"
|
#include "WorldModel.h"
|
||||||
#include <G3D/Vector3.h>
|
#include <G3D/Vector3.h>
|
||||||
#include <iostream>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <string>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
using G3D::Vector3;
|
using G3D::Vector3;
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#ifndef _VMAPMANAGER2_H
|
#ifndef _VMAPMANAGER2_H
|
||||||
#define _VMAPMANAGER2_H
|
#define _VMAPMANAGER2_H
|
||||||
|
|
||||||
#include "IVMapManager.h"
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
#include "IVMapManager.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
@@ -5,15 +5,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MapTree.h"
|
#include "MapTree.h"
|
||||||
#include "ModelInstance.h"
|
|
||||||
#include "VMapManager2.h"
|
|
||||||
#include "VMapDefinitions.h"
|
|
||||||
#include "Log.h"
|
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include <string>
|
#include "Log.h"
|
||||||
#include <sstream>
|
#include "ModelInstance.h"
|
||||||
|
#include "VMapDefinitions.h"
|
||||||
|
#include "VMapManager2.h"
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
using G3D::Vector3;
|
using G3D::Vector3;
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#ifndef _MAPTREE_H
|
#ifndef _MAPTREE_H
|
||||||
#define _MAPTREE_H
|
#define _MAPTREE_H
|
||||||
|
|
||||||
#include "Define.h"
|
|
||||||
#include "BoundingIntervalHierarchy.h"
|
#include "BoundingIntervalHierarchy.h"
|
||||||
|
#include "Define.h"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace VMAP
|
namespace VMAP
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "TileAssembler.h"
|
#include "TileAssembler.h"
|
||||||
#include "MapTree.h"
|
|
||||||
#include "BoundingIntervalHierarchy.h"
|
#include "BoundingIntervalHierarchy.h"
|
||||||
#include "VMapDefinitions.h"
|
|
||||||
#include "MapDefines.h"
|
#include "MapDefines.h"
|
||||||
|
#include "MapTree.h"
|
||||||
|
#include "VMapDefinitions.h"
|
||||||
|
#include <iomanip>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
|
||||||
|
|
||||||
using G3D::Vector3;
|
using G3D::Vector3;
|
||||||
using G3D::AABox;
|
using G3D::AABox;
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#ifndef _TILEASSEMBLER_H_
|
#ifndef _TILEASSEMBLER_H_
|
||||||
#define _TILEASSEMBLER_H_
|
#define _TILEASSEMBLER_H_
|
||||||
|
|
||||||
#include <G3D/Vector3.h>
|
|
||||||
#include <G3D/Matrix3.h>
|
#include <G3D/Matrix3.h>
|
||||||
|
#include <G3D/Vector3.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "GameObjectModel.h"
|
#include "GameObjectModel.h"
|
||||||
#include "VMapFactory.h"
|
|
||||||
#include "VMapManager2.h"
|
|
||||||
#include "VMapDefinitions.h"
|
|
||||||
#include "WorldModel.h"
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "Timer.h"
|
#include "Timer.h"
|
||||||
|
#include "VMapDefinitions.h"
|
||||||
|
#include "VMapFactory.h"
|
||||||
|
#include "VMapManager2.h"
|
||||||
|
#include "WorldModel.h"
|
||||||
|
|
||||||
using G3D::Vector3;
|
using G3D::Vector3;
|
||||||
using G3D::Ray;
|
using G3D::Ray;
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
#define _GAMEOBJECT_MODEL_H
|
#define _GAMEOBJECT_MODEL_H
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include <G3D/Matrix3.h>
|
|
||||||
#include <G3D/Vector3.h>
|
|
||||||
#include <G3D/AABox.h>
|
#include <G3D/AABox.h>
|
||||||
|
#include <G3D/Matrix3.h>
|
||||||
#include <G3D/Ray.h>
|
#include <G3D/Ray.h>
|
||||||
|
#include <G3D/Vector3.h>
|
||||||
|
|
||||||
namespace VMAP
|
namespace VMAP
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ModelInstance.h"
|
#include "ModelInstance.h"
|
||||||
#include "WorldModel.h"
|
|
||||||
#include "MapTree.h"
|
#include "MapTree.h"
|
||||||
#include "VMapDefinitions.h"
|
#include "VMapDefinitions.h"
|
||||||
|
#include "WorldModel.h"
|
||||||
|
|
||||||
using G3D::Vector3;
|
using G3D::Vector3;
|
||||||
using G3D::Ray;
|
using G3D::Ray;
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
#define _MODELINSTANCE_H_
|
#define _MODELINSTANCE_H_
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include <G3D/Matrix3.h>
|
|
||||||
#include <G3D/Vector3.h>
|
|
||||||
#include <G3D/AABox.h>
|
#include <G3D/AABox.h>
|
||||||
|
#include <G3D/Matrix3.h>
|
||||||
#include <G3D/Ray.h>
|
#include <G3D/Ray.h>
|
||||||
|
#include <G3D/Vector3.h>
|
||||||
|
|
||||||
namespace VMAP
|
namespace VMAP
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "WorldModel.h"
|
#include "WorldModel.h"
|
||||||
|
#include "MapTree.h"
|
||||||
#include "ModelInstance.h"
|
#include "ModelInstance.h"
|
||||||
#include "VMapDefinitions.h"
|
#include "VMapDefinitions.h"
|
||||||
#include "MapTree.h"
|
|
||||||
|
|
||||||
using G3D::Vector3;
|
using G3D::Vector3;
|
||||||
using G3D::Ray;
|
using G3D::Ray;
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
#ifndef _WORLDMODEL_H
|
#ifndef _WORLDMODEL_H
|
||||||
#define _WORLDMODEL_H
|
#define _WORLDMODEL_H
|
||||||
|
|
||||||
#include "Define.h"
|
|
||||||
#include "BoundingIntervalHierarchy.h"
|
#include "BoundingIntervalHierarchy.h"
|
||||||
#include <G3D/HashTrait.h>
|
#include "Define.h"
|
||||||
#include <G3D/Vector3.h>
|
|
||||||
#include <G3D/AABox.h>
|
#include <G3D/AABox.h>
|
||||||
|
#include <G3D/HashTrait.h>
|
||||||
#include <G3D/Ray.h>
|
#include <G3D/Ray.h>
|
||||||
|
#include <G3D/Vector3.h>
|
||||||
|
|
||||||
namespace VMAP
|
namespace VMAP
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#ifndef _REGULAR_GRID_H
|
#ifndef _REGULAR_GRID_H
|
||||||
#define _REGULAR_GRID_H
|
#define _REGULAR_GRID_H
|
||||||
|
|
||||||
#include <G3D/Ray.h>
|
|
||||||
#include <G3D/Table.h>
|
|
||||||
#include <G3D/BoundsTrait.h>
|
#include <G3D/BoundsTrait.h>
|
||||||
#include <G3D/PositionTrait.h>
|
#include <G3D/PositionTrait.h>
|
||||||
|
#include <G3D/Ray.h>
|
||||||
|
#include <G3D/Table.h>
|
||||||
|
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
#define _VMAPTOOLS_H
|
#define _VMAPTOOLS_H
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include <G3D/CollisionDetection.h>
|
|
||||||
#include <G3D/AABox.h>
|
#include <G3D/AABox.h>
|
||||||
|
#include <G3D/CollisionDetection.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The Class is mainly taken from G3D/AABSPTree.h but modified to be able to use our internal data structure.
|
The Class is mainly taken from G3D/AABSPTree.h but modified to be able to use our internal data structure.
|
||||||
|
|||||||
@@ -22,13 +22,13 @@
|
|||||||
# endif // !defined(BOOST_ASIO_HAS_MOVE)
|
# endif // !defined(BOOST_ASIO_HAS_MOVE)
|
||||||
# endif // if WARHEAD_COMPILER == WARHEAD_COMPILER_INTEL
|
# endif // if WARHEAD_COMPILER == WARHEAD_COMPILER_INTEL
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <cstdlib>
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <netdb.h>
|
|
||||||
#include <cstdlib>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AC_COMPILER == AC_COMPILER_MICROSOFT
|
#if AC_COMPILER == AC_COMPILER_MICROSOFT
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
#include "StringConvert.h"
|
#include "StringConvert.h"
|
||||||
#include "StringFormat.h"
|
#include "StringFormat.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
#include <mutex>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <mutex>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdexcept>
|
|
||||||
|
|
||||||
class ConfigMgr
|
class ConfigMgr
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
#include "AuthDefines.h"
|
#include "AuthDefines.h"
|
||||||
#include "BigNumber.h"
|
#include "BigNumber.h"
|
||||||
#include "Define.h"
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "CryptoHash.h"
|
#include "CryptoHash.h"
|
||||||
|
#include "Define.h"
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
|
|
||||||
#include "Cryptography/BigNumber.h"
|
#include "Cryptography/BigNumber.h"
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include <openssl/bn.h>
|
|
||||||
#include <cstring>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <openssl/bn.h>
|
||||||
|
|
||||||
BigNumber::BigNumber()
|
BigNumber::BigNumber()
|
||||||
: _bn(BN_new())
|
: _bn(BN_new())
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <openssl/evp.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <openssl/evp.h>
|
|
||||||
|
|
||||||
class BigNumber;
|
class BigNumber;
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <openssl/hmac.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <openssl/hmac.h>
|
|
||||||
|
|
||||||
class BigNumber;
|
class BigNumber;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
|
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cstring>
|
|
||||||
#include "CryptoHash.h"
|
#include "CryptoHash.h"
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#ifndef AZEROTHCORE_SESSIONKEYGENERATOR_HPP
|
#ifndef AZEROTHCORE_SESSIONKEYGENERATOR_HPP
|
||||||
#define AZEROTHCORE_SESSIONKEYGENERATOR_HPP
|
#define AZEROTHCORE_SESSIONKEYGENERATOR_HPP
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "DBCFileLoader.h"
|
||||||
|
#include "Errors.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "DBCFileLoader.h"
|
|
||||||
#include "Errors.h"
|
|
||||||
|
|
||||||
DBCFileLoader::DBCFileLoader() : recordSize(0), recordCount(0), fieldCount(0), stringSize(0), fieldsOffset(nullptr), data(nullptr), stringTable(nullptr) { }
|
DBCFileLoader::DBCFileLoader() : recordSize(0), recordCount(0), fieldCount(0), stringSize(0), fieldsOffset(nullptr), data(nullptr), stringTable(nullptr) { }
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include "StringFormat.h"
|
#include "StringFormat.h"
|
||||||
|
#include <cstdarg>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <cstdarg>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@file Errors.cpp
|
@file Errors.cpp
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
#if AC_PLATFORM == AC_PLATFORM_WINDOWS && !defined(__MINGW32__)
|
#if AC_PLATFORM == AC_PLATFORM_WINDOWS && !defined(__MINGW32__)
|
||||||
|
|
||||||
|
#include <dbghelp.h>
|
||||||
|
#include <mutex>
|
||||||
|
#include <set>
|
||||||
|
#include <stack>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <winnt.h>
|
#include <winnt.h>
|
||||||
#include <winternl.h>
|
#include <winternl.h>
|
||||||
#include <dbghelp.h>
|
|
||||||
#include <set>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stack>
|
|
||||||
#include <mutex>
|
|
||||||
#define countof _countof
|
#define countof _countof
|
||||||
|
|
||||||
#define WER_MAX_ARRAY_ELEMENTS_COUNT 10
|
#define WER_MAX_ARRAY_ELEMENTS_COUNT 10
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
#define ACORE_DEFINE_H
|
#define ACORE_DEFINE_H
|
||||||
|
|
||||||
#include "CompilerDefs.h"
|
#include "CompilerDefs.h"
|
||||||
#include <cstddef>
|
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
#define ACORE_LITTLEENDIAN 0
|
#define ACORE_LITTLEENDIAN 0
|
||||||
#define ACORE_BIGENDIAN 1
|
#define ACORE_BIGENDIAN 1
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
#define ACORE_OBJECTREGISTRY_H
|
#define ACORE_OBJECTREGISTRY_H
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/** ObjectRegistry holds all registry item of the same type
|
/** ObjectRegistry holds all registry item of the same type
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
* types of object at the same time.
|
* types of object at the same time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <vector>
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include "Dynamic/TypeList.h"
|
#include "Dynamic/TypeList.h"
|
||||||
#include "GridRefManager.h"
|
#include "GridRefManager.h"
|
||||||
|
#include <map>
|
||||||
|
#include <unordered_map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @class ContainerMapList is a mulit-type container for map elements
|
* @class ContainerMapList is a mulit-type container for map elements
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
#include "AppenderConsole.h"
|
#include "AppenderConsole.h"
|
||||||
#include "LogMessage.h"
|
#include "LogMessage.h"
|
||||||
#include "SmartEnum.h"
|
#include "SmartEnum.h"
|
||||||
#include "StringFormat.h"
|
|
||||||
#include "StringConvert.h"
|
#include "StringConvert.h"
|
||||||
#include "Util.h"
|
#include "StringFormat.h"
|
||||||
#include "Tokenize.h"
|
#include "Tokenize.h"
|
||||||
|
#include "Util.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
|
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
|
||||||
|
|||||||
@@ -9,12 +9,12 @@
|
|||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include "Logger.h"
|
|
||||||
#include "LogMessage.h"
|
#include "LogMessage.h"
|
||||||
#include "LogOperation.h"
|
#include "LogOperation.h"
|
||||||
|
#include "Logger.h"
|
||||||
#include "StringConvert.h"
|
#include "StringConvert.h"
|
||||||
#include "Util.h"
|
|
||||||
#include "Tokenize.h"
|
#include "Tokenize.h"
|
||||||
|
#include "Util.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include "LogCommon.h"
|
#include "LogCommon.h"
|
||||||
#include <string>
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
struct LogMessage
|
struct LogMessage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "LogOperation.h"
|
#include "LogOperation.h"
|
||||||
#include "Logger.h"
|
|
||||||
#include "LogMessage.h"
|
#include "LogMessage.h"
|
||||||
|
#include "Logger.h"
|
||||||
|
|
||||||
LogOperation::LogOperation(Logger const* _logger, std::unique_ptr<LogMessage>&& _msg) : logger(_logger), msg(std::forward<std::unique_ptr<LogMessage>>(_msg))
|
LogOperation::LogOperation(Logger const* _logger, std::unique_ptr<LogMessage>&& _msg) : logger(_logger), msg(std::forward<std::unique_ptr<LogMessage>>(_msg))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include "LogCommon.h"
|
#include "LogCommon.h"
|
||||||
#include <unordered_map>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
class Appender;
|
class Appender;
|
||||||
struct LogMessage;
|
struct LogMessage;
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
|
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "LogCommon.h"
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
#include "LogCommon.h"
|
||||||
#include "SmartEnum.h"
|
#include "SmartEnum.h"
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//add here most rarely modified headers to speed up debug build compilation
|
//add here most rarely modified headers to speed up debug build compilation
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Log.h"
|
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
|
#include "Log.h"
|
||||||
#include "TypeList.h"
|
#include "TypeList.h"
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
#ifndef _PCQ_H
|
#ifndef _PCQ_H
|
||||||
#define _PCQ_H
|
#define _PCQ_H
|
||||||
|
|
||||||
|
#include <atomic>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <atomic>
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#ifndef THREADING_H
|
#ifndef THREADING_H
|
||||||
#define THREADING_H
|
#define THREADING_H
|
||||||
|
|
||||||
#include <thread>
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
namespace Acore
|
namespace Acore
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
#ifndef _DATA_MAP_H_
|
#ifndef _DATA_MAP_H_
|
||||||
#define _DATA_MAP_H_
|
#define _DATA_MAP_H_
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
class DataMap
|
class DataMap
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
#define _ACORE_GEOMETRY_H
|
#define _ACORE_GEOMETRY_H
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include <iostream>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <iostream>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
[[nodiscard]] inline float getAngle(float startX, float startY, float destX, float destY)
|
[[nodiscard]] inline float getAngle(float startX, float startY, float destX, float destY)
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
#ifndef _MATH_UTIL_H
|
#ifndef _MATH_UTIL_H
|
||||||
#define _MATH_UTIL_H
|
#define _MATH_UTIL_H
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include <iterator>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <iterator>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
// based on https://stackoverflow.com/questions/7616511/calculate-mean-and-standard-deviation-from-a-vector-of-samples-in-c-using-boos/12405793#comment32490316_12405793
|
// based on https://stackoverflow.com/questions/7616511/calculate-mean-and-standard-deviation-from-a-vector-of-samples-in-c-using-boos/12405793#comment32490316_12405793
|
||||||
template <typename Container, typename T = typename std::decay<decltype(*std::begin(std::declval<Container>()))>::type>
|
template <typename Container, typename T = typename std::decay<decltype(*std::begin(std::declval<Container>()))>::type>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#define __MESSAGEBUFFER_H_
|
#define __MESSAGEBUFFER_H_
|
||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include <vector>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
class MessageBuffer
|
class MessageBuffer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
#include "Geometry.h"
|
#include "Geometry.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <iostream>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
#include "SFMTRand.h"
|
#include "SFMTRand.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <ctime>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <ctime>
|
|
||||||
|
|
||||||
#if defined(__aarch64__)
|
#if defined(__aarch64__)
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
#define _SIGNAL_HANDLER_H_
|
#define _SIGNAL_HANDLER_H_
|
||||||
|
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <unordered_set>
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
#include <unordered_set>
|
||||||
|
|
||||||
namespace Acore
|
namespace Acore
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,16 +6,16 @@
|
|||||||
#ifndef _TASK_SCHEDULER_H_
|
#ifndef _TASK_SCHEDULER_H_
|
||||||
#define _TASK_SCHEDULER_H_
|
#define _TASK_SCHEDULER_H_
|
||||||
|
|
||||||
#include <optional>
|
#include "Util.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
|
||||||
#include <queue>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <optional>
|
||||||
|
#include <queue>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "Util.h"
|
#include <vector>
|
||||||
|
|
||||||
class TaskContext;
|
class TaskContext;
|
||||||
|
|
||||||
|
|||||||
@@ -7,18 +7,18 @@
|
|||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Containers.h"
|
#include "Containers.h"
|
||||||
// #include "IpAddress.h"
|
|
||||||
#include "StringConvert.h"
|
#include "StringConvert.h"
|
||||||
#include "StringFormat.h"
|
#include "StringFormat.h"
|
||||||
#include <utf8.h>
|
#include <ace/Default_Constants.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iomanip>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <ace/Default_Constants.h>
|
#include <iomanip>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
#include <utf8.h>
|
||||||
|
// #include "IpAddress.h"
|
||||||
|
|
||||||
Tokenizer::Tokenizer(const std::string& src, const char sep, uint32 vectorReserve)
|
Tokenizer::Tokenizer(const std::string& src, const char sep, uint32 vectorReserve)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,17 +7,17 @@
|
|||||||
#ifndef _UTIL_H
|
#ifndef _UTIL_H
|
||||||
#define _UTIL_H
|
#define _UTIL_H
|
||||||
|
|
||||||
|
#include "Containers.h"
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
#include "Errors.h"
|
#include "Errors.h"
|
||||||
#include "Containers.h"
|
#include <ace/INET_Addr.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <array>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <ace/INET_Addr.h>
|
#include <string>
|
||||||
#include <array>
|
#include <vector>
|
||||||
|
|
||||||
// Searcher for map of structs
|
// Searcher for map of structs
|
||||||
template<typename T, class S> struct Finder
|
template<typename T, class S> struct Finder
|
||||||
|
|||||||
Reference in New Issue
Block a user