Launch and manage one external game process at a time. More...
Public Member Functions | |
| int|None | process_id (self) |
| Return the active child process identifier. | |
| None | launch (self, GameDefinition game, Sequence[str]|None command=None, Callable[[], None]|None on_exit=None) |
| Launch a game or raise if another game is already running. | |
| None | stop (self) |
| Stop the currently running game, if any. | |
| bool | is_running (self) |
| Return whether the launched game process is alive. | |
Launch and manage one external game process at a time.
| bool games.game_launcher_if.GameLauncherIf.is_running | ( | self | ) |
Return whether the launched game process is alive.
Reimplemented in games.game_launcher.GameLauncher.
| None games.game_launcher_if.GameLauncherIf.launch | ( | self, | |
| GameDefinition | game, | ||
| Sequence[str] | None | command = None, | ||
| Callable[[], None] | None | on_exit = None ) |
Launch a game or raise if another game is already running.
| game | Configured game definition to launch. |
| command | Optional backend-specific command override. |
| on_exit | Callback invoked on the process watcher thread after exit. |
Reimplemented in games.game_launcher.GameLauncher.
| int | None games.game_launcher_if.GameLauncherIf.process_id | ( | self | ) |
Return the active child process identifier.
Reimplemented in games.game_launcher.GameLauncher.