Replace includes of Json.hpp in header files with json_fwd.hpp

This commit is contained in:
Simon Jarrett 2020-10-02 11:31:20 +01:00 committed by Aaron van Geffen
parent 55b4c4c6f1
commit 9c5e9f8dbc
25 changed files with 36 additions and 9 deletions

View File

@ -1,7 +1,6 @@
#pragma once
#include "../actions/GameAction.h"
#include "../core/Json.hpp"
#include "NetworkConnection.h"
#include "NetworkGroup.h"
#include "NetworkPlayer.h"
@ -10,6 +9,7 @@
#include "NetworkUser.h"
#include <fstream>
#include <nlohmann/json_fwd.hpp>
#ifndef DISABLE_NETWORK

View File

@ -11,6 +11,7 @@
# include "NetworkGroup.h"
# include "../openrct2/core/Json.hpp"
# include "NetworkAction.h"
# include "NetworkTypes.h"

View File

@ -10,10 +10,10 @@
#pragma once
#include "../common.h"
#include "../core/Json.hpp"
#include "NetworkPacket.h"
#include <array>
#include <nlohmann/json_fwd.hpp>
#include <string>
enum class NetworkPermission : uint32_t;

View File

@ -13,6 +13,7 @@
# include "../core/Console.hpp"
# include "../core/Guard.hpp"
# include "../core/Json.hpp"
# include "../core/Path.hpp"
# include "../core/String.hpp"
# include "../platform/Platform2.h"

View File

@ -10,12 +10,14 @@
#pragma once
#include "../common.h"
#include "../core/Json.hpp"
#include "../core/Nullable.hpp"
#include <map>
#include <nlohmann/json_fwd.hpp>
#include <string>
using json_t = nlohmann::json;
class NetworkUser final
{
public:

View File

@ -10,14 +10,16 @@
#pragma once
#include "../common.h"
#include "../core/Json.hpp"
#include <future>
#include <nlohmann/json_fwd.hpp>
#include <optional>
#include <stdexcept>
#include <string>
#include <vector>
using json_t = nlohmann::json;
struct INetworkEndpoint;
struct ServerListEntry

View File

@ -15,14 +15,16 @@
#define MAX_SERVER_DESCRIPTION_LENGTH 256
#include "../common.h"
#include "../core/Json.hpp"
#include "../localisation/StringIds.h"
#include "NetworkTypes.h"
#include <memory>
#include <nlohmann/json_fwd.hpp>
#include <string>
#include <vector>
using json_t = nlohmann::json;
struct GameAction;
struct Peep;
struct CoordsXYZ;

View File

@ -10,6 +10,7 @@
#include "BannerObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../drawing/Drawing.h"
#include "../localisation/Language.h"
#include "../object/Object.h"

View File

@ -10,6 +10,7 @@
#include "EntranceObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"
#include "../localisation/Localisation.h"

View File

@ -10,6 +10,7 @@
#include "FootpathItemObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../drawing/Drawing.h"
#include "../interface/Cursors.h"
#include "../localisation/Localisation.h"

View File

@ -15,6 +15,7 @@
#include "../core/File.h"
#include "../core/FileScanner.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/Path.hpp"
#include "../core/String.hpp"
#include "../drawing/ImageImporter.h"

View File

@ -10,12 +10,14 @@
#pragma once
#include "../common.h"
#include "../core/Json.hpp"
#include "../drawing/Drawing.h"
#include <memory>
#include <nlohmann/json_fwd.hpp>
#include <vector>
using json_t = nlohmann::json;
struct IReadObjectContext;
namespace OpenRCT2
{

View File

@ -22,6 +22,7 @@
#include <algorithm>
#include <iterator>
#include <nlohmann/json_fwd.hpp>
void LargeSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream)
{

View File

@ -10,15 +10,16 @@
#pragma once
#include "../common.h"
#include "../core/Json.hpp"
#include "ImageTable.h"
#include "StringTable.h"
#include <algorithm>
#include <nlohmann/json_fwd.hpp>
#include <optional>
#include <string_view>
#include <vector>
using json_t = nlohmann::json;
using ObjectEntryIndex = uint16_t;
constexpr const ObjectEntryIndex OBJECT_ENTRY_INDEX_NULL = std::numeric_limits<ObjectEntryIndex>::max();

View File

@ -14,6 +14,7 @@
#include "../OpenRCT2.h"
#include "../audio/audio.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/Memory.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"

View File

@ -10,10 +10,10 @@
#pragma once
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../ride/Ride.h"
#include "Object.h"
#include <nlohmann/json_fwd.hpp>
#include <vector>
class RideObject final : public Object

View File

@ -13,6 +13,7 @@
#include "../Context.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/Memory.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"

View File

@ -12,6 +12,7 @@
#include "SmallSceneryObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/Memory.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"

View File

@ -10,6 +10,7 @@
#include "StationObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"
#include "../localisation/Localisation.h"

View File

@ -10,6 +10,7 @@
#include "StringTable.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/String.hpp"
#include "../localisation/Language.h"
#include "../localisation/LanguagePack.h"

View File

@ -10,12 +10,14 @@
#pragma once
#include "../common.h"
#include "../core/Json.hpp"
#include "../localisation/Language.h"
#include <nlohmann/json_fwd.hpp>
#include <string>
#include <vector>
using json_t = nlohmann::json;
struct IReadObjectContext;
namespace OpenRCT2
{

View File

@ -10,6 +10,7 @@
#include "TerrainEdgeObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"
#include "../localisation/Localisation.h"

View File

@ -12,6 +12,7 @@
#include "TerrainSurfaceObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"
#include "../localisation/Localisation.h"

View File

@ -10,6 +10,7 @@
#include "WallObject.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../core/String.hpp"
#include "../drawing/Drawing.h"
#include "../interface/Cursors.h"

View File

@ -13,6 +13,7 @@
#include "../OpenRCT2.h"
#include "../core/IStream.hpp"
#include "../core/Json.hpp"
#include "../localisation/Language.h"
#include "../localisation/StringIds.h"
#include "../world/Location.hpp"