1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Add Game Manager (WIP), currently only force close and restart games are implemented.

This commit is contained in:
SaigyoujiYukon
2021-12-14 21:38:05 +08:00
parent 73b7748a07
commit ffd2ed1e25
12 changed files with 89 additions and 4 deletions

View File

@@ -2,12 +2,16 @@ from module.handler.login import LoginHandler
from module.logger import logger
class ForceStop(LoginHandler):
def force_stop(self):
class GameManager(LoginHandler):
def run(self):
logger.hr('Force Stop AzurLane', level=1)
self.device.app_stop()
logger.info('Force Stop finished')
if self.config.GameManager_AutoRestart:
self.device.app_start()
self.handle_app_login()
if __name__ == '__main__':
ForceStop('alas', task='ForceStop').force_stop()
GameManager('alas', task='GameManager').run()