fix: make include paths consistent (#1390)

* fix: bad header includes

tests pass

* fix-up more include paths
This commit is contained in:
David Markowitz 2024-01-05 04:33:52 -08:00 committed by GitHub
parent 870b56fe02
commit 2804dc3ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 28 additions and 29 deletions

View File

@ -243,6 +243,7 @@ set(INCLUDED_DIRECTORIES
"thirdparty/recastnavigation" "thirdparty/recastnavigation"
"thirdparty/SQLite" "thirdparty/SQLite"
"thirdparty/cpplinq" "thirdparty/cpplinq"
"thirdparty/cpp-httplib"
"tests" "tests"
"tests/dCommonTests" "tests/dCommonTests"

View File

@ -16,7 +16,7 @@
//RakNet includes: //RakNet includes:
#include "RakNetDefines.h" #include "RakNetDefines.h"
#include <MessageIdentifiers.h> #include "MessageIdentifiers.h"
//Auth includes: //Auth includes:
#include "AuthPackets.h" #include "AuthPackets.h"

View File

@ -25,7 +25,7 @@
//RakNet includes: //RakNet includes:
#include "RakNetDefines.h" #include "RakNetDefines.h"
#include <MessageIdentifiers.h> #include "MessageIdentifiers.h"
namespace Game { namespace Game {
Logger* logger = nullptr; Logger* logger = nullptr;

View File

@ -4,7 +4,7 @@
#include "Amf3.h" #include "Amf3.h"
// RakNet // RakNet
#include <BitStream.h> #include "BitStream.h"
/*! /*!
\file AmfSerialize.h \file AmfSerialize.h

View File

@ -9,7 +9,7 @@
#include <functional> #include <functional>
#include <type_traits> #include <type_traits>
#include <stdexcept> #include <stdexcept>
#include <BitStream.h> #include "BitStream.h"
#include "NiPoint3.h" #include "NiPoint3.h"
#include "Game.h" #include "Game.h"

View File

@ -1,6 +1,6 @@
#include "ZCompression.h" #include "ZCompression.h"
#include <zlib.h> #include "zlib.h"
namespace ZCompression { namespace ZCompression {
int32_t GetMaxCompressedLength(int32_t nLenSrc) { int32_t GetMaxCompressedLength(int32_t nLenSrc) {

View File

@ -4,7 +4,7 @@
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"
#include <zlib.h> #include "zlib.h"
AssetManager::AssetManager(const std::filesystem::path& path) { AssetManager::AssetManager(const std::filesystem::path& path) {
if (!std::filesystem::is_directory(path)) { if (!std::filesystem::is_directory(path)) {

View File

@ -3,7 +3,7 @@
#include "dCommonVars.h" #include "dCommonVars.h"
#include <vector> #include <vector>
#include "../thirdparty/tinyxml2/tinyxml2.h" #include "tinyxml2.h"
#include <unordered_map> #include <unordered_map>
#include <map> #include <map>

View File

@ -3,7 +3,7 @@
#include "CDClientManager.h" #include "CDClientManager.h"
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"
#include <PacketUtils.h> #include "PacketUtils.h"
#include <functional> #include <functional>
#include "CDDestructibleComponentTable.h" #include "CDDestructibleComponentTable.h"
#include "CDClientDatabase.h" #include "CDClientDatabase.h"

View File

@ -3,7 +3,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "../thirdparty/raknet/Source/RakNetTypes.h" #include "RakNetTypes.h"
#include "dCommonVars.h" #include "dCommonVars.h"
#include <unordered_map> #include <unordered_map>

View File

@ -8,9 +8,9 @@
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"
#include "User.h" #include "User.h"
#include <WorldPackets.h> #include "WorldPackets.h"
#include "Character.h" #include "Character.h"
#include <BitStream.h> #include "BitStream.h"
#include "PacketUtils.h" #include "PacketUtils.h"
#include "ObjectIDManager.h" #include "ObjectIDManager.h"
#include "Logger.h" #include "Logger.h"

View File

@ -7,7 +7,7 @@
#include "ZoneInstanceManager.h" #include "ZoneInstanceManager.h"
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"
#include <WorldPackets.h> #include "WorldPackets.h"
#include "EntityManager.h" #include "EntityManager.h"
#include "ChatPackets.h" #include "ChatPackets.h"
#include "Player.h" #include "Player.h"

View File

@ -1,5 +1,5 @@
#include "BaseCombatAIComponent.h" #include "BaseCombatAIComponent.h"
#include <BitStream.h> #include "BitStream.h"
#include "Entity.h" #include "Entity.h"
#include "EntityManager.h" #include "EntityManager.h"

View File

@ -6,7 +6,7 @@
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"
#include "GameMessages.h" #include "GameMessages.h"
#include <BitStream.h> #include "BitStream.h"
#include "eTriggerEventType.h" #include "eTriggerEventType.h"
BouncerComponent::BouncerComponent(Entity* parent) : Component(parent) { BouncerComponent::BouncerComponent(Entity* parent) : Component(parent) {

View File

@ -1,5 +1,5 @@
#include "BuffComponent.h" #include "BuffComponent.h"
#include <BitStream.h> #include "BitStream.h"
#include "CDClientDatabase.h" #include "CDClientDatabase.h"
#include <stdexcept> #include <stdexcept>
#include "DestroyableComponent.h" #include "DestroyableComponent.h"

View File

@ -1,5 +1,5 @@
#include "CharacterComponent.h" #include "CharacterComponent.h"
#include <BitStream.h> #include "BitStream.h"
#include "tinyxml2.h" #include "tinyxml2.h"
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "../thirdparty/tinyxml2/tinyxml2.h" #include "tinyxml2.h"
class Entity; class Entity;

View File

@ -1,5 +1,5 @@
#include "DestroyableComponent.h" #include "DestroyableComponent.h"
#include <BitStream.h> #include "BitStream.h"
#include "Logger.h" #include "Logger.h"
#include "Game.h" #include "Game.h"
#include "dConfig.h" #include "dConfig.h"

View File

@ -1,6 +1,6 @@
#include "PropertyEntranceComponent.h" #include "PropertyEntranceComponent.h"
#include <CDPropertyEntranceComponentTable.h> #include "CDPropertyEntranceComponentTable.h"
#include "Character.h" #include "Character.h"
#include "Database.h" #include "Database.h"

View File

@ -1,7 +1,7 @@
#ifndef QUICKBUILDCOMPONENT_H #ifndef QUICKBUILDCOMPONENT_H
#define QUICKBUILDCOMPONENT_H #define QUICKBUILDCOMPONENT_H
#include <BitStream.h> #include "BitStream.h"
#include <vector> #include <vector>
#include <string> #include <string>
#include "dCommonVars.h" #include "dCommonVars.h"

View File

@ -1,7 +1,7 @@
#ifndef RENDERCOMPONENT_H #ifndef RENDERCOMPONENT_H
#define RENDERCOMPONENT_H #define RENDERCOMPONENT_H
#include <BitStream.h> #include "BitStream.h"
#include <vector> #include <vector>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>

View File

@ -7,7 +7,7 @@
#include "MissionComponent.h" #include "MissionComponent.h"
#include "BitStreamUtils.h" #include "BitStreamUtils.h"
#include "dServer.h" #include "dServer.h"
#include "../thirdparty/raknet/Source/RakNetworkFactory.h" #include "RakNetworkFactory.h"
#include <future> #include <future>
#include "User.h" #include "User.h"
#include "UserManager.h" #include "UserManager.h"

View File

@ -50,7 +50,7 @@
#include <chrono> #include <chrono>
#include "RakString.h" #include "RakString.h"
#include "../thirdparty/cpp-httplib/httplib.h" //sorry not sorry. #include "httplib.h" //sorry not sorry.
//CDB includes: //CDB includes:
#include "CDClientManager.h" #include "CDClientManager.h"

View File

@ -13,7 +13,7 @@
#include <bcrypt/BCrypt.hpp> #include <bcrypt/BCrypt.hpp>
#include <BitStream.h> #include "BitStream.h"
#include <future> #include <future>
#include "Game.h" #include "Game.h"

View File

@ -1,8 +1,8 @@
#ifndef PACKETUTILS_H #ifndef PACKETUTILS_H
#define PACKETUTILS_H #define PACKETUTILS_H
#include <MessageIdentifiers.h> #include "MessageIdentifiers.h"
#include <BitStream.h> #include "BitStream.h"
#include <string> #include <string>
enum class eConnectionType : uint16_t; enum class eConnectionType : uint16_t;

View File

@ -7,7 +7,7 @@
#include <string> #include <string>
// RakNet // RakNet
#include <RakNetTypes.h> #include "RakNetTypes.h"
class dServer; class dServer;

View File

@ -4,8 +4,6 @@
#include "Game.h" #include "Game.h"
#include "Logger.h" #include "Logger.h"
#include "dServer.h" #include "dServer.h"
#include "EntityInfo.h"
#include "EntityManager.h"
#include "dConfig.h" #include "dConfig.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>