mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
refactor.删除实例化的TaskData
This commit is contained in:
@@ -97,15 +97,6 @@ bool AsstStop(AsstHandle handle)
|
||||
return handle->stop();
|
||||
}
|
||||
|
||||
bool AsstSetParam(AsstHandle handle, const char* param_id, const char* param_value)
|
||||
{
|
||||
if (!inited || handle == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return handle->set_param(param_id, param_value);
|
||||
}
|
||||
|
||||
TaskId AsstAppendTask(AsstHandle handle, const char* type, const char* params)
|
||||
{
|
||||
if (!inited || handle == nullptr) {
|
||||
@@ -115,14 +106,6 @@ TaskId AsstAppendTask(AsstHandle handle, const char* type, const char* params)
|
||||
return handle->append_task(type, params);
|
||||
}
|
||||
|
||||
bool AsstSetTaskParams(AsstHandle handle, TaskId id, const char* params)
|
||||
{
|
||||
if (!inited || handle == nullptr) {
|
||||
return false;
|
||||
}
|
||||
return handle->set_task_params(id, params);
|
||||
}
|
||||
|
||||
unsigned long long AsstGetImage(AsstHandle handle, void* buff, unsigned long long buff_size)
|
||||
{
|
||||
if (!inited || handle == nullptr || buff == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user