From e91183dcef9fabca533432b896e65bdd02f9ba5d Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 4 Mar 2022 21:41:03 +0800 Subject: [PATCH] =?UTF-8?q?feat.=E8=A1=A5=E4=B8=8Apython=E7=9A=84=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E5=94=A4=E9=86=92=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistant/Assistant.cpp | 1 - src/Python/interface.py | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistant/Assistant.cpp b/src/MeoAssistant/Assistant.cpp index 49ce1f5488..2fe7d9cfc0 100644 --- a/src/MeoAssistant/Assistant.cpp +++ b/src/MeoAssistant/Assistant.cpp @@ -1,6 +1,5 @@ #include "Assistant.h" -#include #include #include diff --git a/src/Python/interface.py b/src/Python/interface.py index 87a6d301b2..d3401a690b 100644 --- a/src/Python/interface.py +++ b/src/Python/interface.py @@ -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,)