1
0
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:
ζeh Matt
2021-11-24 19:35:21 +02:00
parent f704358cb3
commit ee53f1db66
2 changed files with 4 additions and 3 deletions

View File

@@ -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();

View File

@@ -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;