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