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

Method get_node_data

source/binding/NodeJS/src/apis/context.cpp:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162std::optional<std::string> ContextImpl::get_node_data(std::string node_name)
163{
164 StringBuffer buffer;
165 if (!MaaContextGetNodeData(context, node_name.c_str(), buffer)) {
166 return std::nullopt;
167 }
168 return buffer.str();
169}
170
171std::optional<maajs::ValueType> ContextImpl::get_node_data_parsed(std::string node_name)
172{

Callers

nothing calls this directly

Calls 2

MaaContextGetNodeDataFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected