mirror of https://github.com/OpenRCT2/OpenRCT2.git
Move STR_NONE, STR_EMPTY to StringIdType.h (#22019)
This commit is contained in:
parent
3e4a77fd50
commit
2f68c7e823
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
*****************************************************************************/
|
||||
#pragma once
|
||||
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../world/Location.hpp"
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "../common.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
|
||||
struct ResultWithMessage
|
||||
{
|
||||
|
|
|
@ -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__))
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include "LanguagePack.h"
|
||||
#include "Localisation.h"
|
||||
#include "LocalisationService.h"
|
||||
#include "StringIds.h"
|
||||
|
||||
#include <stack>
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "Date.h"
|
||||
#include "FormatCodes.h"
|
||||
#include "Formatting.h"
|
||||
#include "StringIds.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue