Create Identifiers.h for common identifier types

This commit is contained in:
ζeh Matt 2021-11-07 17:53:15 +02:00
parent 4147a57c5b
commit 5d2fd57d1e
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
4 changed files with 20 additions and 5 deletions

View File

@ -0,0 +1,17 @@
/*****************************************************************************
* Copyright (c) 2014-2021 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 "common.h"
#include "core/Identifier.hpp"
#include <limits>
using ParkEntranceIndex = TIdentifier<uint8_t, std::numeric_limits<uint8_t>::max(), struct ParkEntranceIndexTag>;

View File

@ -209,6 +209,7 @@
<ClInclude Include="Game.h" />
<ClInclude Include="GameState.h" />
<ClInclude Include="GameStateSnapshots.h" />
<ClInclude Include="Identifiers.h" />
<ClInclude Include="Input.h" />
<ClInclude Include="interface\Chat.h" />
<ClInclude Include="interface\Colour.h" />

View File

@ -9,8 +9,8 @@
#pragma once
#include "../Identifiers.h"
#include "../common.h"
#include "../core/Identifier.hpp"
#include "../ride/RideTypes.h"
#include "../ride/Station.h"
#include "../util/Util.h"
@ -33,7 +33,6 @@ namespace GameActions
{
class Result;
}
using ParkEntranceIndex = TIdentifier<uint8_t, std::numeric_limits<uint8_t>::max(), struct ParkEntranceIndexTag>;
enum class StaffType : uint8_t
{

View File

@ -9,8 +9,8 @@
#pragma once
#include "../Identifiers.h"
#include "../common.h"
#include "../core/Identifier.hpp"
#include "Location.hpp"
#include "Map.h"
@ -45,8 +45,6 @@ extern CoordsXYZD gParkEntranceGhostPosition;
constexpr int32_t MaxRideEntranceOrExitHeight = 244 * COORDS_Z_STEP;
using ParkEntranceIndex = TIdentifier<uint8_t, std::numeric_limits<uint8_t>::max(), struct ParkEntranceIndexTag>;
extern std::vector<CoordsXYZD> gParkEntrances;
extern CoordsXYZD gRideEntranceExitGhostPosition;