Core/Game: Include cleanup

* Mostly aimed at removing Log/DatabaseEnv includes from other headers
* Fix most packet headers including other packet headers - moved common structures such as ItemInstance to their own files
* Moved SAI function definitions to source files (massive or requiring many different dependencies)
This commit is contained in:
Shauren
2017-05-18 23:52:58 +02:00
parent 7445670314
commit c5d3dd90be
357 changed files with 4791 additions and 3886 deletions

View File

@@ -22,24 +22,24 @@ Comment: All debug related commands
Category: commandscripts
EndScriptData */
#include "ScriptMgr.h"
#include "ObjectMgr.h"
#include "BattlefieldMgr.h"
#include "BattlegroundMgr.h"
#include "Chat.h"
#include "Cell.h"
#include "CellImpl.h"
#include "Chat.h"
#include "Conversation.h"
#include "GossipDef.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "GossipDef.h"
#include "M2Stores.h"
#include "Transport.h"
#include "Language.h"
#include "Log.h"
#include "M2Stores.h"
#include "MapManager.h"
#include "MovementPackets.h"
#include "ObjectMgr.h"
#include "ScriptMgr.h"
#include "SpellPackets.h"
#include "Transport.h"
#include <fstream>
#include <limits>
@@ -379,26 +379,6 @@ public:
parsedStream >> val6;
data << val6;
}
else if (type == "appitsguid")
{
data << unit->GetPackGUID();
}
else if (type == "appmyguid")
{
data << player->GetPackGUID();
}
else if (type == "appgoguid")
{
GameObject* obj = handler->GetNearbyGameObject();
if (!obj)
{
handler->PSendSysMessage(LANG_COMMAND_OBJNOTFOUND, UI64LIT(0));
handler->SetSentErrorMessage(true);
ifs.close();
return false;
}
data << obj->GetPackGUID();
}
else if (type == "goguid")
{
GameObject* obj = handler->GetNearbyGameObject();