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

Function CustomRequestUuid

source/binding/NodeJS/src/apis/callback.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165MaaBool CustomRequestUuid(void* trans_arg, MaaStringBuffer* buffer)
166{
167 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
168 auto ctx = customCtx->callbacks["request_uuid"];
169 auto result = ctx->Call<std::optional<std::string>>([&](maajs::FunctionType func) { return func.Call({ }); });
170 if (result) {
171 StringBuffer(buffer, false).set(*result);
172 return true;
173 }
174 else {
175 return false;
176 }
177}
178
179MaaControllerFeature CustomGetFeatures(void* trans_arg)
180{

Callers

nothing calls this directly

Calls 3

StringBufferClass · 0.70
CallMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected