tolua_module(L,NULL,0);tolua_beginmodule(L,NULL); { tolua_module(L,"Game",0);tolua_beginmodule(L,"Game"); { tolua_cclass(L,"PlayerTrade","CPlayerTrade","",collect_player_trade);tolua_beginmodule(L,"PlayerTrade"); {//册CPlayer类的函数tolua_function(L,"new",player_trade_new); t...
/* Open function */TOLUA_APIinttolua_tarray_open(lua_State* tolua_S){ tolua_open(tolua_S); tolua_reg_types(tolua_S);tolua_module(tolua_S,NULL,1); tolua_beginmodule(tolua_S,NULL);#ifdef__cplusplustolua_cclass(tolua_S,"Point","Point","",tolua_collect_Point);#elsetolua_cclass(tolu...
/* Open function */TOLUA_APIinttolua_tarray_open(lua_State* tolua_S){ tolua_open(tolua_S); tolua_reg_types(tolua_S);tolua_module(tolua_S,NULL,1); tolua_beginmodule(tolua_S,NULL);#ifdef__cplusplustolua_cclass(tolua_S,"Point","Point","",tolua_collect_Point);#elsetolua_cclass(tolu...