feat.补上python的开始唤醒接口

This commit is contained in:
MistEO
2022-03-04 21:41:03 +08:00
parent 4962d7e6c9
commit e91183dcef
2 changed files with 9 additions and 1 deletions

View File

@@ -52,6 +52,12 @@ class Asst:
return self.__lib.AsstConnect(self.__ptr,
adb_path.encode('utf-8'), address.encode('utf-8'), config.encode('utf-8'))
def append_start_up(self) -> bool:
"""
添加开始唤醒任务
"""
return self.__lib.AsstAppendStartUp(self.__ptr)
def append_fight(self, stage: str, max_medicine: int, max_stone: int, max_times: int) -> bool:
"""
添加刷理智任务
@@ -214,6 +220,9 @@ class Asst:
self.__lib.AsstConnect.argtypes = (
ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p,)
self.__lib.AsstAppendStartUp.restype = ctypes.c_bool
self.__lib.AsstAppendStartUp.argtypes = (ctypes.c_void_p,)
self.__lib.AsstAppendFight.restype = ctypes.c_bool
self.__lib.AsstAppendFight.argtypes = (
ctypes.c_void_p, ctypes.c_char_p, ctypes.c_int, ctypes.c_int, ctypes.c_int,)