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

Method get_node_list

source/binding/NodeJS/src/apis/resource.cpp:327–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327std::optional<std::vector<std::string>> ResourceImpl::get_node_list()
328{
329 StringListBuffer buffer;
330 if (!MaaResourceGetNodeList(resource, buffer)) {
331 return std::nullopt;
332 }
333
334 return buffer.as_vector([](StringBufferRefer buf) { return buf.str(); });
335}
336
337std::optional<std::vector<std::string>> ResourceImpl::get_custom_recognition_list()
338{

Callers 1

MaaResourceGetNodeListFunction · 0.45

Calls 3

MaaResourceGetNodeListFunction · 0.85
as_vectorMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected