🚧 Base work for the Store/Manager architecture

This commit is contained in:
GeoffreyCoulaud
2023-05-23 02:06:47 +02:00
parent 9fd58e6ba3
commit 3df9380c2d
2 changed files with 91 additions and 0 deletions

17
src/store/manager.py Normal file
View File

@@ -0,0 +1,17 @@
from abc import abstractmethod
from src.game import Game
class Manager:
"""Class in charge of handling a post creation action for games.
May connect to signals on the game to handle them."""
run_after: set[type["Manager"]]
@abstractmethod
def run(self, game: Game) -> None:
"""Pass the game through the manager.
May block its thread.
May not raise exceptions, as they will be silently ignored."""
pass