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

Method get_resource

source/binding/NodeJS/src/apis/tasker.cpp:223–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223std::optional<maajs::ValueType> TaskerImpl::get_resource()
224{
225 auto res = MaaTaskerGetResource(tasker);
226 if (!res) {
227 return std::nullopt;
228 }
229 return ResourceImpl::locate_object(env, res);
230}
231
232void TaskerImpl::set_controller(std::optional<maajs::NativeObject<ControllerImpl>> ctrl)
233{

Callers

nothing calls this directly

Calls 1

MaaTaskerGetResourceFunction · 0.85

Tested by

no test coverage detected