🚧 Base work for the Store/Manager architecture
This commit is contained in:
17
src/store/manager.py
Normal file
17
src/store/manager.py
Normal 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
|
||||
Reference in New Issue
Block a user