From 500915b9475cc3d3089b824cb8b2455166a3184c Mon Sep 17 00:00:00 2001 From: bobloy Date: Sat, 22 Aug 2020 13:26:17 -0400 Subject: [PATCH] Game data is different --- conquest/regioner.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/conquest/regioner.py b/conquest/regioner.py index 22f1f94..0f42679 100644 --- a/conquest/regioner.py +++ b/conquest/regioner.py @@ -266,9 +266,20 @@ class ConquestMap: class ConquestGame(ConquestMap): - def __init__(self, path: pathlib.Path): + def __init__(self, path: pathlib.Path, game_name: str, custom_map_path: pathlib.Path): super().__init__(path) - self + self.game_name = game_name + self.custom_map_path = custom_map_path + self.game_path = custom_map_path / game_name + + def game_data_path(self): + return self.game_path / "data.json" + + def game_current_path(self): + return self.game_path / "current.png" + + def game_current_numbered_path(self): + return self.game_path / "current_numbered.png" async def start_game(self): pass