mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Misc: fixed more no pch errors
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
*/
|
||||
|
||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||
#include <Windows.h>
|
||||
#define Crash(message) \
|
||||
ULONG_PTR execeptionArgs[] = { reinterpret_cast<ULONG_PTR>(strdup(message)), reinterpret_cast<ULONG_PTR>(_ReturnAddress()) }; \
|
||||
RaiseException(EXCEPTION_ASSERTION_FAILURE, 0, 2, execeptionArgs);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
// Autogenerated from DB2Structure.h
|
||||
|
||||
#include "HotfixDatabase.h"
|
||||
#include "PreparedStatement.h"
|
||||
|
||||
// Force locale statments to appear exactly in locale declaration order, right after normal data fetch statement
|
||||
#define PREPARE_LOCALE_STMT(stmtBase, sql, con) \
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "Creature.h"
|
||||
#include "CreatureAIImpl.h"
|
||||
#include "CreatureTextMgr.h"
|
||||
#include "DBCStores.h"
|
||||
#include "Language.h"
|
||||
#include "Log.h"
|
||||
#include "Map.h"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
class Unit;
|
||||
class Player;
|
||||
class GameObject;
|
||||
class WorldPacket;
|
||||
|
||||
typedef std::vector<AchievementCriteriaEntry const*> AchievementCriteriaEntryList;
|
||||
|
||||
@@ -15,12 +15,15 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "DB2Stores.h"
|
||||
#include "Common.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DB2Stores.h"
|
||||
#include "DB2fmt.h"
|
||||
#include "Errors.h"
|
||||
#include "HotfixDatabase.h"
|
||||
#include "Log.h"
|
||||
#include "World.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
DB2Storage<ItemEntry> sItemStore("Item.db2", Itemfmt, HOTFIX_SEL_ITEM);
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "DB2Store.h"
|
||||
#include "DB2Structure.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
TC_GAME_API extern DB2Storage<ItemEntry> sItemStore;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "ItemTemplate.h"
|
||||
#include "Log.h"
|
||||
#include "ObjectDefines.h"
|
||||
#include "Player.h"
|
||||
#include "Regex.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "SpellMgr.h"
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "MotionMaster.h"
|
||||
#include "ObjectMgr.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#define MAX_DESYNC 5.0f
|
||||
|
||||
FormationMgr::~FormationMgr()
|
||||
|
||||
@@ -63,6 +63,8 @@ class TC_GAME_API FormationMgr
|
||||
CreatureGroupInfoType CreatureGroupMap;
|
||||
};
|
||||
|
||||
struct Position;
|
||||
|
||||
class TC_GAME_API CreatureGroup
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -29,6 +29,7 @@ class GameObjectAI;
|
||||
class GameObjectModel;
|
||||
class Group;
|
||||
class OPvPCapturePoint;
|
||||
class SpellInfo;
|
||||
class Transport;
|
||||
class Unit;
|
||||
struct TransportAnimation;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#define _ITEMPROTOTYPE_H
|
||||
|
||||
#include "DB2Structure.h"
|
||||
#include "Errors.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "WorldPacket.h"
|
||||
#include <vector>
|
||||
@@ -624,7 +625,9 @@ struct ItemEffect
|
||||
#define MAX_ITEM_PROTO_SPELLS 5
|
||||
#define MAX_ITEM_PROTO_STATS 10
|
||||
|
||||
struct ItemTemplate
|
||||
class Player;
|
||||
|
||||
struct TC_GAME_API ItemTemplate
|
||||
{
|
||||
ItemEntry const* BasicData;
|
||||
ItemSparseEntry const* ExtendedData;
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "Group.h"
|
||||
#include "Battleground.h"
|
||||
#include "ReputationMgr.h"
|
||||
#include <unordered_map>
|
||||
|
||||
#define MAX_GUILD_BANK_TAB_TEXT_LEN 500
|
||||
#define EMBLEM_PRICE 10 * GOLD
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "DatabaseEnvFwd.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "SharedDefines.h"
|
||||
|
||||
#include <array>
|
||||
#include <unordered_map>
|
||||
|
||||
template<class T>
|
||||
@@ -29,6 +31,7 @@ class AchievementMgr;
|
||||
class Item;
|
||||
class Player;
|
||||
class Unit;
|
||||
class GameObject;
|
||||
class WorldPacket;
|
||||
class WorldSession;
|
||||
struct ItemPosCount;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "Player.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "World.h"
|
||||
|
||||
void WorldSession::HandleSplitItemOpcode(WorldPacket& recvData)
|
||||
{
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "LFGMgr.h"
|
||||
#include "DBCStores.h"
|
||||
#include "GameTime.h"
|
||||
#include "Group.h"
|
||||
#include "LFGMgr.h"
|
||||
#include "LFGPackets.h"
|
||||
#include "Log.h"
|
||||
#include "ObjectAccessor.h"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "CreatureAI.h"
|
||||
#include "CreatureAIImpl.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DBCStructure.h"
|
||||
#include "DBCStores.h"
|
||||
#include "GameObject.h"
|
||||
#include "Group.h"
|
||||
#include "Guild.h"
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "Loot.h"
|
||||
#include "DBCStores.h"
|
||||
#include "Group.h"
|
||||
#include "ItemEnchantmentMgr.h"
|
||||
#include "ItemTemplate.h"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "TransportMgr.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "GameObjectData.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Log.h"
|
||||
#include "MapManager.h"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
struct KeyFrame;
|
||||
struct GameObjectTemplate;
|
||||
struct TransportTemplate;
|
||||
class Transport;
|
||||
class MapTransport;
|
||||
class Map;
|
||||
|
||||
@@ -33,12 +34,12 @@ namespace Movement
|
||||
template <typename length_type> class Spline;
|
||||
}
|
||||
|
||||
typedef Movement::Spline<double> TransportSpline;
|
||||
typedef std::vector<KeyFrame> KeyFrameVec;
|
||||
typedef std::unordered_map<uint32, TransportTemplate> TransportTemplates;
|
||||
typedef std::set<Transport*> TransportSet;
|
||||
typedef std::unordered_map<uint32, TransportSet> TransportMap;
|
||||
typedef std::unordered_map<uint32, std::set<uint32> > TransportInstanceMap;
|
||||
typedef Movement::Spline<double> TransportSpline;
|
||||
typedef std::vector<KeyFrame> KeyFrameVec;
|
||||
typedef std::unordered_map<uint32, TransportTemplate> TransportTemplates;
|
||||
typedef std::set<Transport*> TransportSet;
|
||||
typedef std::unordered_map<uint32, TransportSet> TransportMap;
|
||||
typedef std::unordered_map<uint32, std::set<uint32>> TransportInstanceMap;
|
||||
|
||||
struct KeyFrame
|
||||
{
|
||||
@@ -83,6 +84,8 @@ struct TransportTemplate
|
||||
uint32 entry;
|
||||
};
|
||||
|
||||
struct QuaternionData;
|
||||
|
||||
typedef std::map<uint32, TransportAnimationEntry const*> TransportPathContainer;
|
||||
typedef std::map<uint32, TransportRotationEntry const*> TransportPathRotationContainer;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "Errors.h"
|
||||
#include "ObjectDefines.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "Optional.h"
|
||||
#include "Position.h"
|
||||
#include "SharedDefines.h"
|
||||
#include <vector>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <G3D/Vector3.h>
|
||||
|
||||
class Unit;
|
||||
class WorldObject;
|
||||
|
||||
// 74*4.0f=296y number_of_points*interval = max_path_len
|
||||
// this is way more than actual evade range
|
||||
|
||||
@@ -18,8 +18,10 @@
|
||||
#ifndef TRINITY_WAYPOINTMANAGER_H
|
||||
#define TRINITY_WAYPOINTMANAGER_H
|
||||
|
||||
#include "Define.h"
|
||||
#include "WaypointDefines.h"
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
|
||||
class TC_GAME_API WaypointMgr
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
*/
|
||||
|
||||
#include "LFGPackets.h"
|
||||
#include "ItemTemplate.h"
|
||||
#include "ObjectMgr.h"
|
||||
|
||||
void WorldPackets::LFG::LFGJoin::Read()
|
||||
{
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "QueryPackets.h"
|
||||
|
||||
void WorldPackets::Query::DBQueryBulk::Read()
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#define QueryPackets_h__
|
||||
|
||||
#include "Packet.h"
|
||||
#include "DB2Stores.h"
|
||||
#include "ObjectGuid.h"
|
||||
|
||||
namespace WorldPackets
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#define QuestPackets_h__
|
||||
|
||||
#include "Packet.h"
|
||||
#include "QuestDef.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "Optional.h"
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "Position.h"
|
||||
#include "SharedDefines.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace WorldPackets
|
||||
{
|
||||
namespace Spells
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "WorldSocket.h"
|
||||
#include "WorldSocketMgr.h"
|
||||
#include "World.h"
|
||||
|
||||
#include <boost/system/error_code.hpp>
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
// For static or at-server-startup loaded spell data
|
||||
|
||||
#include "ConditionMgr.h"
|
||||
#include "Define.h"
|
||||
#include "Duration.h"
|
||||
#include "IteratorPair.h"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "ObjectMgr.h"
|
||||
#include "Timer.h"
|
||||
#include "Opcodes.h"
|
||||
#include "DatabaseEnv.h"
|
||||
|
||||
namespace WeatherMgr
|
||||
{
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#ifndef GILNEAS_M_
|
||||
#define GILNEAS_M_
|
||||
|
||||
#include "Position.h"
|
||||
|
||||
/*######
|
||||
## Quest 14154 - By the Skin of his Teeth
|
||||
######*/
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "scarlet_monastery.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "scarlet_monastery.h"
|
||||
#include "InstanceScript.h"
|
||||
|
||||
enum Yells
|
||||
{
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "zulaman.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "ScriptMgr.h"
|
||||
@@ -25,6 +27,7 @@
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "SpellScript.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include "Weather.h"
|
||||
|
||||
enum Texts
|
||||
|
||||
@@ -20,9 +20,11 @@
|
||||
#include "CreatureAIImpl.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellScript.h"
|
||||
|
||||
enum Northshire
|
||||
{
|
||||
NPC_STORWIND_INFANTRY = 49869,
|
||||
|
||||
@@ -15,10 +15,15 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "SpellScript.h"
|
||||
#include "CombatAI.h"
|
||||
#include "CreatureAIImpl.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "SharedDefines.h"
|
||||
|
||||
class spell_westfall_unbound_energy : public SpellScript
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "DB2StorageLoader.h"
|
||||
#include "Database/Implementation/HotfixDatabase.h"
|
||||
#include "Database/DatabaseEnv.h"
|
||||
#include "Errors.h"
|
||||
#include "Log.h"
|
||||
|
||||
DB2FileLoader::DB2FileLoader()
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "Utilities/ByteConverter.h"
|
||||
#include <cassert>
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
class TC_SHARED_API DB2FileLoader
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user