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

Function ChildCustomActionCallback

sample/cpp/MaaAgent/agent_child.cpp:61–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61MaaBool ChildCustomActionCallback(
62 MaaContext* context,
63 MaaTaskId task_id,
64 const char* node_name,
65 const char* custom_action_name,
66 const char* custom_action_param,
67 MaaRecoId reco_id,
68 const MaaRect* box,
69 void* trans_arg)
70{
71 std::cout << "at ChildCustomActionCallback" << std::endl;
72
73 MaaContextRunTask(
74 context,
75 "ChildCustomActionInner",
76 R"({
77 "ChildCustomActionInner": {
78 "action": "Custom",
79 "custom_action": "ChildCustomActionInner"
80 }
81 })");
82
83 return true;
84}
85
86MaaBool ChildCustomActionInnerCallback(
87 MaaContext* context,

Callers

nothing calls this directly

Calls 1

MaaContextRunTaskFunction · 0.85

Tested by

no test coverage detected