Files
MaaAssistantArknights/include/AsstCaller.h
2021-11-26 01:09:48 +08:00

34 lines
1.4 KiB
C

#pragma once
#include "AsstPort.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void (MEO_CALL* AsstCallback)(int msg, const char* detail_json, void* custom_arg);
MEOAPI_PORT void* MEO_CALL AsstCreate();
MEOAPI_PORT void* MEO_CALL AsstCreateEx(AsstCallback callback, void* custom_arg);
void MEOAPI AsstDestory(void* p_asst);
bool MEOAPI AsstCatchDefault(void* p_asst);
bool MEOAPI AsstCatchEmulator(void* p_asst);
bool MEOAPI AsstCatchCustom(void* p_asst);
bool MEOAPI AsstCatchFake(void* p_asst);
bool MEOAPI AsstAppendSanity(void* p_asst, int max_mecidine, int max_stone, int max_times);
bool MEOAPI AsstAppendReceiveAward(void* p_asst);
bool MEOAPI AsstAppendVisit(void* p_asst, bool with_shopping);
bool MEOAPI AsstAppendProcessTask(void* p_asst, const char* task);
bool MEOAPI AsstAppendRecruiting(void* p_asst, const int required_level[], int required_len, bool set_time);
bool MEOAPI AsstAppendInfrastShift(void* p_asst, int work_mode, const char** order, int order_size, int uses_of_drones, double dorm_threshold);
bool MEOAPI AsstAppendDebugTask(void* p_asst);
bool MEOAPI AsstStart(void* p_asst);
bool MEOAPI AsstStop(void* p_asst);
bool MEOAPI AsstSetParam(void* p_asst, const char* type, const char* param, const char* value);
MEOAPI_PORT const char* MEO_CALL AsstGetVersion();
#ifdef __cplusplus
}
#endif