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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user