This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnce.py
45 lines (38 loc) · 1.58 KB
/
nce.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from module.alas import AzurLaneAutoScript
from module.logger import logger
class NeuralCloudEnhancer(AzurLaneAutoScript):
def restart(self):
from tasks.login.login import Login
Login(self.config, device=self.device).app_restart()
def start(self):
from tasks.login.login import Login
Login(self.config, device=self.device).app_start()
def goto_main(self):
# logger.info("goto_main")
from tasks.login.login import Login
from tasks.base.ui import UI
if self.device.app_is_running():
logger.info('App is already running, goto main page')
UI(self.config, device=self.device).ui_goto_main()
else:
logger.info('App is not running, start app and goto main page')
Login(self.config, device=self.device).app_start()
UI(self.config, device=self.device).ui_goto_main()
# def dungeon(self):
# from tasks.dungeon.dungeon import Dungeon
# Dungeon(config=self.config, device=self.device).run()
#
# def daily_quest(self):
# from tasks.daily.daily_quest import DailyQuestUI
# DailyQuestUI(config=self.config, device=self.device).run()
#
# def battle_pass(self):
# from tasks.battle_pass.battle_pass import BattlePassUI
# BattlePassUI(config=self.config, device=self.device).run()
#
# def assignment(self):
# from tasks.assignment.assignment import Assignment
# Assignment(config=self.config, device=self.device).run()
if __name__ == '__main__':
src = NeuralCloudEnhancer('nce')
src.loop()