Move waypoints and commit boundaries to FastAPI.

This commit is contained in:
Dan Albert
2022-02-19 18:25:45 -08:00
parent b533633494
commit c16ca40894
25 changed files with 360 additions and 328 deletions

View File

@@ -529,3 +529,8 @@ class GameModel:
self.game = game
self.ato_model.replace_from_game(player=True)
self.red_ato_model.replace_from_game(player=False)
def get(self) -> Game:
if self.game is None:
raise RuntimeError("GameModel has no Game set")
return self.game