1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Create PaletteIndex

This commit is contained in:
Gymnasiast
2022-01-01 18:38:31 +01:00
parent de2b893d99
commit 1e1f370c8d
2 changed files with 4 additions and 2 deletions

View File

@@ -13,6 +13,8 @@
#include <string_view>
using PaletteIndex = uint8_t;
/**
* Colour IDs as used by the colour dropdown, NOT palette indices.
*/
@@ -65,7 +67,7 @@ enum
COLOUR_LIGHT_WATER = 10
};
enum : uint8_t
enum : PaletteIndex
{
PALETTE_INDEX_0 = 0, // Transparent
PALETTE_INDEX_10 = 10, // Black (0-dark), Dark grey (0)

View File

@@ -53,7 +53,7 @@ public:
uint8_t Rotations{};
money32 Price{};
TERRAIN_SURFACE_FLAGS Flags{};
uint8_t MapColours[2];
PaletteIndex MapColours[2];
void ReadJson(IReadObjectContext* context, json_t& root) override;
void Load() override;