mirror of https://github.com/OpenRCT2/OpenRCT2.git
Create Identifiers.h for common identifier types
This commit is contained in:
parent
4147a57c5b
commit
5d2fd57d1e
|
@ -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>;
|
|
@ -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" />
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue