From c82bca90eb4ccb3b5411f3ceebfb0bc95cc6ab2d Mon Sep 17 00:00:00 2001 From: iikorni Date: Wed, 8 Dec 2021 15:36:31 -0600 Subject: [PATCH] Add BoundBoxXYZ to Location --- src/openrct2/world/Location.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 23e0b3197f..c0ea257bab 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -721,6 +721,25 @@ struct BoundBoxXY } }; +struct BoundBoxXYZ +{ + CoordsXYZ offset{}; + CoordsXYZ length{}; + + constexpr BoundBoxXYZ() = default; + constexpr BoundBoxXYZ(CoordsXYZ _offset, CoordsXYZ _length) + : offset(_offset) + , length(_length) + { + } + + constexpr BoundBoxXYZ(int32_t _offX, int32_t _offY, int32_t _offZ, int32_t _lenX, int32_t _lenY, int32_t _lenZ) + : offset({_offX, _offY, _offZ}) + , length({_lenX, _lenY, _lenZ}) + { + } +}; + /** * Represents a range of the map using regular coordinates. */