1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Add BoundBoxXY to Location

This commit is contained in:
iikorni
2021-12-08 15:30:29 -06:00
committed by Gymnasiast
parent 02886b2a6c
commit cfc9af6957

View File

@@ -702,6 +702,25 @@ struct TileCoordsXYZD : public TileCoordsXYZ
}
};
struct BoundBoxXY
{
CoordsXY offset{};
CoordsXY length{};
constexpr BoundBoxXY() = default;
constexpr BoundBoxXY(CoordsXY _offset, CoordsXY _length)
: offset(_offset)
, length(_length)
{
}
constexpr BoundBoxXY(int32_t _offX, int32_t _offY, int32_t _lenX, int32_t _lenY)
: offset({_offX, _offY})
, length({_lenX, _lenY})
{
}
};
/**
* Represents a range of the map using regular coordinates.
*/