AZEROTHCORE compatibility (#271)

* Done Compatible AZEROTHCORE.

* Fix TC build

* Try fix whitespace (trailing and tabs2spaces)

* Remove undefs and TC_LOG defines

* Revert indentation change

* Indentation and style change

* Add more possible SQL types to query

* change bg hooks OnBGEnd parameter type.
This commit is contained in:
ayase
2018-06-06 23:42:46 +08:00
committed by Rochet2
parent 2cedb8c5af
commit 9b5499db9c
31 changed files with 869 additions and 510 deletions

View File

@@ -39,7 +39,14 @@
#include "WorldPacket.h"
#include "WorldSession.h"
#ifdef TRINITY
#if defined TRINITY
#include "GitRevision.h"
#include "SpellHistory.h"
#include <boost/thread/locks.hpp>
#include <boost/thread/shared_mutex.hpp>
#endif
#if defined TRINITY || defined AZEROTHCORE
#include "Config.h"
#include "GameEventMgr.h"
#include "GroupMgr.h"
@@ -47,13 +54,9 @@
#include "SpellInfo.h"
#include "WeatherMgr.h"
#include "Battleground.h"
#include "GitRevision.h"
#include "SpellHistory.h"
#include "MotionMaster.h"
#include "DatabaseEnv.h"
#include "Bag.h"
#include <boost/thread/locks.hpp>
#include <boost/thread/shared_mutex.hpp>
#else
#include "Config/Config.h"
#ifdef CMANGOS
@@ -111,7 +114,21 @@ typedef Opcodes OpcodesList;
#endif
#endif
#ifndef TRINITY
#ifdef AZEROTHCORE
#define CORE_NAME "AzerothCore"
#define CORE_VERSION ""
#define eWorld (sWorld)
#define eMapMgr (sMapMgr)
#define eConfigMgr (sConfigMgr)
#define eGuildMgr (sGuildMgr)
#define eObjectMgr (sObjectMgr)
#define eAccountMgr (sAccountMgr)
#define eAuctionMgr (sAuctionMgr)
#define eGameEventMgr (sGameEventMgr)
#define eObjectAccessor() ObjectAccessor::
#endif
#if !defined TRINITY && !AZEROTHCORE
#define eWorld (&sWorld)
#define eMapMgr (&sMapMgr)
#define eConfigMgr (&sConfig)