mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-18 13:32:32 +01:00
Move CoordsXYE to Location.hpp
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "../Identifiers.h"
|
#include "../Identifiers.h"
|
||||||
#include "../object/Object.h"
|
#include "../object/Object.h"
|
||||||
#include "../world/Map.h"
|
#include "../world/Location.hpp"
|
||||||
#include "../world/QuarterTile.h"
|
#include "../world/QuarterTile.h"
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
@@ -28,6 +28,7 @@ namespace OpenRCT2
|
|||||||
enum class TrackElemType : uint16_t;
|
enum class TrackElemType : uint16_t;
|
||||||
|
|
||||||
struct TileElement;
|
struct TileElement;
|
||||||
|
struct TrackElement;
|
||||||
} // namespace OpenRCT2
|
} // namespace OpenRCT2
|
||||||
|
|
||||||
struct ResultWithMessage;
|
struct ResultWithMessage;
|
||||||
|
|||||||
@@ -338,6 +338,28 @@ struct CoordsXYRangedZ : public CoordsXY
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace OpenRCT2
|
||||||
|
{
|
||||||
|
struct TileElement;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct CoordsXYE : public CoordsXY
|
||||||
|
{
|
||||||
|
CoordsXYE() = default;
|
||||||
|
constexpr CoordsXYE(int32_t _x, int32_t _y, OpenRCT2::TileElement* _e)
|
||||||
|
: CoordsXY(_x, _y)
|
||||||
|
, element(_e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
constexpr CoordsXYE(const CoordsXY& c, OpenRCT2::TileElement* _e)
|
||||||
|
: CoordsXY(c)
|
||||||
|
, element(_e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
OpenRCT2::TileElement* element = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
struct TileCoordsXY
|
struct TileCoordsXY
|
||||||
{
|
{
|
||||||
int32_t x{};
|
int32_t x{};
|
||||||
|
|||||||
@@ -37,23 +37,6 @@ namespace OpenRCT2
|
|||||||
enum class TrackElemType : uint16_t;
|
enum class TrackElemType : uint16_t;
|
||||||
} // namespace OpenRCT2
|
} // namespace OpenRCT2
|
||||||
|
|
||||||
struct CoordsXYE : public CoordsXY
|
|
||||||
{
|
|
||||||
CoordsXYE() = default;
|
|
||||||
constexpr CoordsXYE(int32_t _x, int32_t _y, OpenRCT2::TileElement* _e)
|
|
||||||
: CoordsXY(_x, _y)
|
|
||||||
, element(_e)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr CoordsXYE(const CoordsXY& c, OpenRCT2::TileElement* _e)
|
|
||||||
: CoordsXY(c)
|
|
||||||
, element(_e)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
OpenRCT2::TileElement* element = nullptr;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern const std::array<CoordsXY, 8> CoordsDirectionDelta;
|
extern const std::array<CoordsXY, 8> CoordsDirectionDelta;
|
||||||
extern const TileCoordsXY TileDirectionDelta[];
|
extern const TileCoordsXY TileDirectionDelta[];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user