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

Method init_proto

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

Source from the content-addressed store, hash-verified

252}
253
254void ContextImpl::init_proto(maajs::ObjectType proto, maajs::FunctionType)
255{
256 MAA_BIND_FUNC(proto, "run_task", ContextImpl::run_task);
257 MAA_BIND_FUNC(proto, "run_recognition", ContextImpl::run_recognition);
258 MAA_BIND_FUNC(proto, "run_action", ContextImpl::run_action);
259 MAA_BIND_FUNC(proto, "run_recognition_direct", ContextImpl::run_recognition_direct);
260 MAA_BIND_FUNC(proto, "run_action_direct", ContextImpl::run_action_direct);
261 MAA_BIND_FUNC(proto, "override_pipeline", ContextImpl::override_pipeline);
262 MAA_BIND_FUNC(proto, "override_next", ContextImpl::override_next);
263 MAA_BIND_FUNC(proto, "override_image", ContextImpl::override_image);
264 MAA_BIND_FUNC(proto, "get_node_data", ContextImpl::get_node_data);
265 MAA_BIND_FUNC(proto, "get_node_data_parsed", ContextImpl::get_node_data_parsed);
266 MAA_BIND_GETTER(proto, "task_id", ContextImpl::get_task_id);
267 MAA_BIND_GETTER(proto, "tasker", ContextImpl::get_tasker);
268 MAA_BIND_FUNC(proto, "clone", ContextImpl::clone);
269 MAA_BIND_FUNC(proto, "set_anchor", ContextImpl::set_anchor);
270 MAA_BIND_FUNC(proto, "get_anchor", ContextImpl::get_anchor);
271 MAA_BIND_FUNC(proto, "get_hit_count", ContextImpl::get_hit_count);
272 MAA_BIND_FUNC(proto, "clear_hit_count", ContextImpl::clear_hit_count);
273}
274
275maajs::ValueType load_context(maajs::EnvType env)
276{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected