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

Method init_proto

source/binding/NodeJS/src/apis/client.cpp:130–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void ClientImpl::init_proto(maajs::ObjectType proto, maajs::FunctionType)
131{
132 MAA_BIND_FUNC(proto, "destroy", ClientImpl::destroy);
133 MAA_BIND_GETTER(proto, "identifier", ClientImpl::get_identifier);
134 MAA_BIND_FUNC(proto, "bind_resource", ClientImpl::bind_resource);
135 MAA_BIND_FUNC(proto, "register_resource_sink", ClientImpl::register_resource_sink);
136 MAA_BIND_FUNC(proto, "register_controller_sink", ClientImpl::register_controller_sink);
137 MAA_BIND_FUNC(proto, "register_tasker_sink", ClientImpl::register_tasker_sink);
138 MAA_BIND_FUNC(proto, "connect", ClientImpl::connect);
139 MAA_BIND_FUNC(proto, "disconnect", ClientImpl::disconnect);
140 MAA_BIND_GETTER(proto, "connected", ClientImpl::get_connected);
141 MAA_BIND_GETTER(proto, "alive", ClientImpl::get_alive);
142 MAA_BIND_SETTER(proto, "timeout", ClientImpl::set_timeout);
143 MAA_BIND_GETTER(proto, "custom_recognition_list", ClientImpl::get_custom_recognition_list);
144 MAA_BIND_GETTER(proto, "custom_action_list", ClientImpl::get_custom_action_list);
145}
146
147maajs::ValueType load_client(maajs::EnvType env)
148{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected