mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Move waypoints and commit boundaries to FastAPI.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user