forked from MaaAssistantArknights/MaaAssistantArknights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AsstCaller.h
44 lines (33 loc) · 1.51 KB
/
AsstCaller.h
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
#pragma once
#include "AsstPort.h"
namespace asst
{
class Assistant;
}
#ifdef __cplusplus
extern "C"
{
#endif
typedef asst::Assistant* AsstHandle;
typedef int TaskId;
typedef void(ASST_CALL* AsstApiCallback)(int msg, const char* detail_json, void* custom_arg);
bool ASSTAPI AsstLoadResource(const char* path);
AsstHandle ASSTAPI AsstCreate();
AsstHandle ASSTAPI AsstCreateEx(AsstApiCallback callback, void* custom_arg);
void ASSTAPI AsstDestroy(AsstHandle handle);
bool ASSTAPI AsstConnect(AsstHandle handle, const char* adb_path, const char* address, const char* config);
TaskId ASSTAPI AsstAppendTask(AsstHandle handle, const char* type, const char* params);
bool ASSTAPI AsstSetTaskParams(AsstHandle handle, TaskId id, const char* params);
bool ASSTAPI AsstStart(AsstHandle handle);
bool ASSTAPI AsstStop(AsstHandle handle);
bool ASSTAPI AsstRunning(AsstHandle handle);
bool ASSTAPI AsstCtrlerClick(AsstHandle handle, int x, int y, bool block);
unsigned long long ASSTAPI AsstGetImage(AsstHandle handle, void* buff, unsigned long long buff_size);
unsigned long long ASSTAPI AsstGetUUID(AsstHandle handle, char* buff, unsigned long long buff_size);
unsigned long long ASSTAPI AsstGetTasksList(AsstHandle handle, TaskId* buff, unsigned long long buff_size);
unsigned long long ASSTAPI AsstGetNullSize();
ASSTAPI_PORT const char* ASST_CALL AsstGetVersion();
void ASSTAPI AsstLog(const char* level, const char* message);
#ifdef __cplusplus
}
#endif