From e0983808f9852657b7d712a346f4690c974d7397 Mon Sep 17 00:00:00 2001 From: miro Date: Wed, 18 Dec 2024 11:51:55 +0000 Subject: [PATCH] add resume handler --- ovos_workshop/skills/game_skill.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ovos_workshop/skills/game_skill.py b/ovos_workshop/skills/game_skill.py index 6e96b22a..fd3b7d87 100644 --- a/ovos_workshop/skills/game_skill.py +++ b/ovos_workshop/skills/game_skill.py @@ -92,6 +92,10 @@ def on_play_game(self): def on_pause_game(self): """called by ocp_pipeline on 'pause' if game is being played""" + @abc.abstractmethod + def on_resume_game(self): + """called by ocp_pipeline on 'resume/unpause' if game is being played and paused""" + @abc.abstractmethod def on_stop_game(self): """called when game is stopped for any reason @@ -135,6 +139,10 @@ def on_play_game(self): def on_pause_game(self): """called by ocp_pipeline on 'pause' if game is being played""" + @abc.abstractmethod + def on_resume_game(self): + """called by ocp_pipeline on 'resume/unpause' if game is being played and paused""" + @abc.abstractmethod def on_stop_game(self): """called when game is stopped for any reason @@ -153,7 +161,7 @@ def on_load_game(self): # converse @abc.abstractmethod def on_game_command(self, utterance: str, lang: str): - """pipe user input to the game + """pipe user input that wasnt caught by intents to the game do any intent matching or normalization here don't forget to self.speak the game output too! """