1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Introduce 'Direction' typedef

Directions are used quite widely across the codebase, but right now we just use uint8_t for them. Defining a proper type makes the intention clearer.
This commit is contained in:
Richard Fine
2019-01-05 13:58:32 +00:00
parent 322be796e3
commit 613c7e9bf3

View File

@@ -129,10 +129,12 @@ struct TileCoordsXYZ
int32_t x = 0, y = 0, z = 0;
};
typedef uint8_t Direction;
struct CoordsXYZD
{
int32_t x, y, z;
uint8_t direction;
Direction direction;
bool isNull() const
{
@@ -143,7 +145,7 @@ struct CoordsXYZD
struct TileCoordsXYZD
{
int32_t x, y, z;
uint8_t direction;
Direction direction;
bool isNull() const
{