From 402e910915ffae352c7f232294f2880d885106e5 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 12 Feb 2023 19:45:12 -0800 Subject: [PATCH] Add Map.bounds --- erynrl/map/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erynrl/map/__init__.py b/erynrl/map/__init__.py index 4c3aba4..589c47a 100644 --- a/erynrl/map/__init__.py +++ b/erynrl/map/__init__.py @@ -42,6 +42,11 @@ class Map: self.__walkable_points = None + @property + def bounds(self) -> Rect: + '''The bounds of the map''' + return Rect(Point(), self.size) + @property def size(self) -> Size: '''The size of the map'''