mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
feat.补上python的开始唤醒接口
This commit is contained in:
@@ -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,)
|
||||
|
||||
Reference in New Issue
Block a user