Move STR_NONE, STR_EMPTY to StringIdType.h (#22019)

This commit is contained in:
Aaron van Geffen 2024-05-15 20:29:11 +02:00 committed by GitHub
parent 3e4a77fd50
commit 2f68c7e823
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 25 additions and 9 deletions

View File

@ -14,6 +14,7 @@
#include <openrct2/core/String.hpp>
#include <openrct2/localisation/Formatting.h>
#include <openrct2/localisation/Localisation.h>
#include <openrct2/localisation/StringIds.h>
#include <unordered_map>
using namespace OpenRCT2;

View File

@ -15,7 +15,6 @@
#include <functional>
#include <memory>
#include <openrct2/core/FileSystem.hpp>
#include <openrct2/localisation/StringIds.h>
#include <optional>
#include <string>
#include <string_view>

View File

@ -8,7 +8,6 @@
*****************************************************************************/
#pragma once
#include "../localisation/StringIds.h"
#include "../management/Finance.h"
#include "../world/Location.hpp"

View File

@ -10,7 +10,6 @@
#pragma once
#include "../common.h"
#include "../localisation/StringIds.h"
struct ResultWithMessage
{

View File

@ -21,6 +21,7 @@
#endif
#include "Diagnostic.h"
#include "localisation/StringIdType.h"
#include <cassert>
#include <cstddef>
@ -38,8 +39,6 @@ using datetime64 = uint64_t;
constexpr datetime64 DATETIME64_MIN = 0;
using StringId = uint16_t;
#define abstract = 0
#if defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))

View File

@ -18,7 +18,6 @@
#include "LanguagePack.h"
#include "Localisation.h"
#include "LocalisationService.h"
#include "StringIds.h"
#include <stack>

View File

@ -20,6 +20,7 @@
#include "Date.h"
#include "FormatCodes.h"
#include "Formatting.h"
#include "StringIds.h"
#include <cstring>

View File

@ -0,0 +1,17 @@
/*****************************************************************************
* Copyright (c) 2014-2024 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include <cstdint>
using StringId = uint16_t;
constexpr StringId STR_NONE = 0xFFFF;
constexpr StringId STR_EMPTY = 0;

View File

@ -11,11 +11,8 @@
#include "../common.h"
constexpr StringId STR_NONE = 0xFFFF;
enum : uint16_t
{
STR_EMPTY = 0,
STR_RIDE_NAME_DEFAULT = 1,
STR_RIDE_NAME_1D = 31,
STR_RIDE_NAME_1F = 33,

View File

@ -16,6 +16,7 @@
#include "../../localisation/Formatter.h"
#include "../../localisation/Formatting.h"
#include "../../localisation/Localisation.h"
#include "../../localisation/StringIds.h"
#include "../../object/BannerObject.h"
#include "../../object/ObjectEntryManager.h"
#include "../../profiling/Profiling.h"

View File

@ -18,6 +18,7 @@
#include "../../localisation/Formatter.h"
#include "../../localisation/Formatting.h"
#include "../../localisation/Localisation.h"
#include "../../localisation/StringIds.h"
#include "../../object/LargeSceneryObject.h"
#include "../../profiling/Profiling.h"
#include "../../ride/Ride.h"

View File

@ -19,6 +19,7 @@
#include "../../localisation/Formatter.h"
#include "../../localisation/Formatting.h"
#include "../../localisation/Localisation.h"
#include "../../localisation/StringIds.h"
#include "../../object/FootpathObject.h"
#include "../../object/FootpathRailingsObject.h"
#include "../../object/FootpathSurfaceObject.h"

View File

@ -18,6 +18,7 @@
#include "../../interface/Viewport.h"
#include "../../localisation/Formatting.h"
#include "../../localisation/Localisation.h"
#include "../../localisation/StringIds.h"
#include "../../object/WallSceneryEntry.h"
#include "../../profiling/Profiling.h"
#include "../../ride/Track.h"

View File

@ -23,6 +23,7 @@
#include "../common.h"
#include "../core/BitSet.hpp"
#include "../entity/Guest.h"
#include "../localisation/StringIds.h"
#include "../sprites.h"
#include "../util/Util.h"
#include "Ride.h"