mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Use TIdentifier for BannerIndex
This commit is contained in:
@@ -15,3 +15,6 @@
|
||||
#include <limits>
|
||||
|
||||
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>;
|
||||
constexpr BannerIndex BANNER_INDEX_NULL = BannerIndex::GetNull();
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../Identifiers.h"
|
||||
#include "../common.h"
|
||||
#include "../ride/RideTypes.h"
|
||||
#include "Location.hpp"
|
||||
@@ -19,11 +20,8 @@ class Formatter;
|
||||
struct TileElement;
|
||||
struct WallElement;
|
||||
|
||||
using BannerIndex = uint16_t;
|
||||
|
||||
constexpr ObjectEntryIndex BANNER_NULL = OBJECT_ENTRY_INDEX_NULL;
|
||||
constexpr size_t MAX_BANNERS = 8192;
|
||||
constexpr BannerIndex BANNER_INDEX_NULL = static_cast<BannerIndex>(-1);
|
||||
|
||||
constexpr uint8_t SCROLLING_MODE_NONE = 255;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user