Skip to content

Commit

Permalink
add resume handler
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 18, 2024
1 parent 6c5ae69 commit e098380
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ovos_workshop/skills/game_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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!
"""
Expand Down

0 comments on commit e098380

Please sign in to comment.