Remove Drawing.h include from Config.h

This commit is contained in:
Aaron van Geffen 2024-05-08 23:18:53 +02:00
parent ca6f142a97
commit a627cf7a1e
6 changed files with 13 additions and 10 deletions

View File

@ -15,6 +15,7 @@
#include "core/Path.hpp"
#include "core/String.hpp"
#include "platform/Platform.h"
#include "util/Util.h"
using namespace OpenRCT2;

View File

@ -10,13 +10,14 @@
#pragma once
#include "../core/String.hpp"
#include "../drawing/Drawing.h"
#include "../localisation/Currency.h"
#include "../localisation/CurrencyTypes.h"
#include "ConfigTypes.h"
#include <atomic>
#include <string>
struct Gx;
struct GeneralConfiguration
{
// Paths

View File

@ -22,6 +22,7 @@
# include "../drawing/Font.h"
# include "../localisation/LocalisationService.h"
# include "../platform/Platform.h"
# include "../util/Util.h"
# include "DrawingLock.hpp"
# include "TTF.h"

View File

@ -279,7 +279,7 @@
<ClInclude Include="Limits.h" />
<ClInclude Include="localisation\ConversionTables.h" />
<ClInclude Include="localisation\Currency.h" />
<ClInclude Include="localisation\CurrencyType.h" />
<ClInclude Include="localisation\CurrencyTypes.h" />
<ClInclude Include="localisation\Date.h" />
<ClInclude Include="localisation\FormatCodes.h" />
<ClInclude Include="localisation\Formatter.h" />

View File

@ -12,13 +12,7 @@
#include "../common.h"
#include "../core/String.hpp"
#include "../util/Util.h"
#include "CurrencyType.h"
enum class CurrencyAffix
{
Prefix,
Suffix
};
#include "CurrencyTypes.h"
#define CURRENCY_SYMBOL_MAX_SIZE 8
#define CURRENCY_RATE_MAX_NUM_DIGITS 9

View File

@ -36,3 +36,9 @@ enum class CurrencyType : uint8_t
Count // Last item
};
enum class CurrencyAffix
{
Prefix,
Suffix
};