MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / ChildCustomActionInnerCallback

Function ChildCustomActionInnerCallback

sample/cpp/MaaAgent/agent_child.cpp:86–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86MaaBool ChildCustomActionInnerCallback(
87 MaaContext* context,
88 MaaTaskId task_id,
89 const char* node_name,
90 const char* custom_action_name,
91 const char* custom_action_param,
92 MaaRecoId reco_id,
93 const MaaRect* box,
94 void* trans_arg)
95{
96 std::cout << "at ChildCustomActionInnerCallback" << std::endl;
97
98 auto buffer = MaaStringBufferCreate();
99 MaaContextGetNodeData(context, node_name, buffer);
100 const char* detail = MaaStringBufferGet(buffer);
101 bool b = MaaContextOverridePipeline(context, detail);
102 MaaStringBufferDestroy(buffer);
103 return true;
104}
105
106MaaBool ChildCustomRecognitionCallback(
107 MaaContext* context,

Callers

nothing calls this directly

Calls 5

MaaStringBufferCreateFunction · 0.85
MaaContextGetNodeDataFunction · 0.85
MaaStringBufferGetFunction · 0.85
MaaStringBufferDestroyFunction · 0.85

Tested by

no test coverage detected