mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Create PaletteIndex
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user