怎样创建ALModule的API
1、模块生成器创建一个会被代理程序读懂的类:加载一个模块,查看模块函数API等等。
2、#define BIND_METHOD( x ) 在模块的API里添加方法x。API(绑定函数)可以被本地或远程调用。
3、void functionName ( con衡痕贤伎st std::string& pName, const std::string&锾攒揉敫amp; pClass, const std::string& pFunctionDescription ); 用来定义绑定方法的名称。
4、void addParam (const std::string& pName, const std::string& pDesc); 用来说明方法的参数
5、virtual AL::ALValue get怡觎现喾MethodHelp ( const std::string& pMethodName ); 获取methodName的说明
6、AL::ALValue moduleHelp(); 获取模块的说明
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:88
阅读量:82
阅读量:90
阅读量:21
阅读量:53