mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 04:59:41 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user