Added blocking/async managers

This commit is contained in:
GeoffreyCoulaud
2023-05-29 00:05:44 +02:00
parent aeab1de4a9
commit b99c058cd7
7 changed files with 91 additions and 46 deletions

View File

@@ -9,7 +9,8 @@ class DisplayManager(Manager):
run_after = set((FileManager,))
def run(self, game: Game) -> None:
def final_run(self, game: Game) -> None:
# TODO decouple a game from its widget
# TODO make the display manager async
shared.win.games[game.game_id] = game
game.update()