mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Use TIdentifier for RideId
This commit is contained in:
@@ -17,3 +17,5 @@
|
||||
using ParkEntranceIndex = TIdentifier<uint8_t, std::numeric_limits<uint8_t>::max(), struct ParkEntranceIndexTag>;
|
||||
|
||||
using BannerIndex = TIdentifier<uint16_t, std::numeric_limits<uint16_t>::max(), struct BannerIndexTag>;
|
||||
|
||||
using RideId = TIdentifier<uint16_t, std::numeric_limits<uint16_t>::max(), struct RideIdTag>;
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../Identifiers.h"
|
||||
#include "../object/Object.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
|
||||
enum class RideId : uint16_t;
|
||||
struct Ride;
|
||||
|
||||
constexpr const RideId RIDE_ID_NULL = static_cast<RideId>(std::numeric_limits<std::underlying_type_t<RideId>>::max());
|
||||
constexpr auto RIDE_ID_NULL = RideId::GetNull();
|
||||
|
||||
using ride_type_t = uint16_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user