mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
fix: make include paths consistent (#1390)
* fix: bad header includes tests pass * fix-up more include paths
This commit is contained in:
parent
870b56fe02
commit
2804dc3ec2
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "Amf3.h"
|
#include "Amf3.h"
|
||||||
|
|
||||||
// RakNet
|
// RakNet
|
||||||
#include <BitStream.h>
|
#include "BitStream.h"
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\file AmfSerialize.h
|
\file AmfSerialize.h
|
||||||
|
@ -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"
|
||||||
|
@ -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) {
|
||||||
|
@ -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)) {
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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) {
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../thirdparty/tinyxml2/tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
|
|
||||||
class Entity;
|
class Entity;
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
// RakNet
|
// RakNet
|
||||||
#include <RakNetTypes.h>
|
#include "RakNetTypes.h"
|
||||||
|
|
||||||
class dServer;
|
class dServer;
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user