/* Open lib function */ LUALIB_API int luaopen_Level1SceneLua (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"Level1Scene","Level1Scene","Scene",NULL); tolua_beginmodule(tolua_S,"Level1Scene"); tolua_function(tolua_S,"new",tolua_Level1SceneLua_Level1Scene_new00); tolua_function(tolua_S,"printScene",tolua_Level1SceneLua_Level1Scene_printScene00); tolua_function(tolua_S,"setCallFunc",tolua_Level1SceneLua_Level1Scene_setCallFunc00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_cocos2dx_BYGraySprite_luabinding_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"BYGraySprite","BYGraySprite","CCSprite",NULL); tolua_beginmodule(tolua_S,"BYGraySprite"); tolua_function(tolua_S,"create",tolua_cocos2dx_BYGraySprite_luabinding_BYGraySprite_create00); tolua_function(tolua_S,"createWithSpriteFrame",tolua_cocos2dx_BYGraySprite_luabinding_BYGraySprite_createWithSpriteFrame00); tolua_function(tolua_S,"createWithSpriteFrameName",tolua_cocos2dx_BYGraySprite_luabinding_BYGraySprite_createWithSpriteFrameName00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_PlayerData_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); #ifdef __cplusplus tolua_cclass(tolua_S,"PlayerData","PlayerData","",tolua_collect_PlayerData); #else tolua_cclass(tolua_S,"PlayerData","PlayerData","",NULL); #endif tolua_beginmodule(tolua_S,"PlayerData"); tolua_function(tolua_S,"new",tolua_PlayerData_PlayerData_new00); tolua_function(tolua_S,"new_local",tolua_PlayerData_PlayerData_new00_local); tolua_function(tolua_S,".call",tolua_PlayerData_PlayerData_new00_local); tolua_function(tolua_S,"delete",tolua_PlayerData_PlayerData_delete00); tolua_function(tolua_S,"setName",tolua_PlayerData_PlayerData_setName00); tolua_function(tolua_S,"getName",tolua_PlayerData_PlayerData_getName00); tolua_function(tolua_S,"setEnergy",tolua_PlayerData_PlayerData_setEnergy00); tolua_function(tolua_S,"getEnergy",tolua_PlayerData_PlayerData_getEnergy00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int lua_register_classB_classB(lua_State* tolua_S) { tolua_usertype(tolua_S,"classB"); tolua_cclass(tolua_S,"classB","classB","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"classB"); tolua_function(tolua_S,"new",lua_classB_classB_constructor); tolua_function(tolua_S,"play",lua_classB_classB_play); tolua_function(tolua_S,"create", lua_classB_classB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(classB).name(); g_luaType[typeName] = "classB"; g_typeCast["classB"] = "classB"; return 1; }
/* Open lib function */ LUALIB_API int luaopen_Object (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"MetaInfo","MetaInfo","",NULL); tolua_beginmodule(tolua_S,"MetaInfo"); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"Object","Object","",NULL); tolua_beginmodule(tolua_S,"Object"); tolua_function(tolua_S,"new",tolua_Object_Object_new00); tolua_function(tolua_S,"GetID",tolua_Object_Object_GetID00); tolua_function(tolua_S,"SetID",tolua_Object_Object_SetID00); tolua_function(tolua_S,"InitMetaInfo",tolua_Object_Object_InitMetaInfo00); tolua_function(tolua_S,"GetMetaInfo",tolua_Object_Object_GetMetaInfo00); tolua_function(tolua_S,"GetBasePtr",tolua_Object_Object_GetBasePtr00); tolua_function(tolua_S,"GetStaticMetaInfo",tolua_Object_Object_GetStaticMetaInfo00); tolua_function(tolua_S,"GetSuperName",tolua_Object_Object_GetSuperName00); tolua_function(tolua_S,"Constructor",tolua_Object_Object_Constructor00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int lua_register_cocos2dx_bridge_LuaBridge(lua_State* tolua_S) { tolua_usertype(tolua_S,"LuaBridge"); tolua_cclass(tolua_S,"LuaBridge","LuaBridge","",nullptr); tolua_beginmodule(tolua_S,"LuaBridge"); tolua_function(tolua_S,"getPath",lua_cocos2dx_bridge_LuaBridge_getPath); tolua_function(tolua_S,"new",lua_cocos2dx_bridge_LuaBridge_constructor); tolua_function(tolua_S,"getInstance", lua_cocos2dx_bridge_LuaBridge_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(LuaBridge).name(); g_luaType[typeName] = "LuaBridge"; g_typeCast["LuaBridge"] = "LuaBridge"; return 1; }
int lua_register_Blur_Action_BoxfilterAct(lua_State* tolua_S) { tolua_usertype(tolua_S,"BoxfilterAct"); tolua_cclass(tolua_S,"BoxfilterAct","BoxfilterAct","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"BoxfilterAct"); tolua_function(tolua_S,"setShader",lua_Blur_Action_BoxfilterAct_setShader); tolua_function(tolua_S,"update",lua_Blur_Action_BoxfilterAct_update); tolua_function(tolua_S,"create", lua_Blur_Action_BoxfilterAct_create); tolua_endmodule(tolua_S); std::string typeName = typeid(BoxfilterAct).name(); g_luaType[typeName] = "BoxfilterAct"; g_typeCast["BoxfilterAct"] = "BoxfilterAct"; return 1; }
int lua_register_cocos2dx_TDGAVirtualCurrency(lua_State* tolua_S) { tolua_usertype(tolua_S,"TDGAVirtualCurrency"); tolua_cclass(tolua_S,"TDGAVirtualCurrency","TDGAVirtualCurrency","",nullptr); tolua_beginmodule(tolua_S,"TDGAVirtualCurrency"); tolua_function(tolua_S,"onChargeRequest", lua_cocos2dx_TDGAVirtualCurrency_onChargeRequest); tolua_function(tolua_S,"onReward", lua_cocos2dx_TDGAVirtualCurrency_onReward); tolua_function(tolua_S,"onChargeSuccess", lua_cocos2dx_TDGAVirtualCurrency_onChargeSuccess); tolua_endmodule(tolua_S); std::string typeName = typeid(TDCCVirtualCurrency).name(); g_luaType[typeName] = "TDGAVirtualCurrency"; g_typeCast["TDGAVirtualCurrency"] = "TDGAVirtualCurrency"; return 1; }
int lua_register_cocos2dx_spine_SkeletonAnimation(lua_State* tolua_S) { tolua_usertype(tolua_S,"sp.SkeletonAnimation"); tolua_cclass(tolua_S,"SkeletonAnimation","sp.SkeletonAnimation","sp.Skeleton",nullptr); tolua_beginmodule(tolua_S,"SkeletonAnimation"); tolua_function(tolua_S,"setMix",lua_cocos2dx_spine_SkeletonAnimation_setMix); tolua_function(tolua_S,"clearTracks",lua_cocos2dx_spine_SkeletonAnimation_clearTracks); tolua_function(tolua_S,"clearTrack",lua_cocos2dx_spine_SkeletonAnimation_clearTrack); tolua_endmodule(tolua_S); std::string typeName = typeid(spine::SkeletonAnimation).name(); g_luaType[typeName] = "sp.SkeletonAnimation"; g_typeCast["SkeletonAnimation"] = "sp.SkeletonAnimation"; return 1; }
/* Open lib function */ LUALIB_API int luaopen_LuaFunction (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"LuaFunction","LuaFunction","",NULL); tolua_beginmodule(tolua_S,"LuaFunction"); tolua_function(tolua_S,"new",tolua_LuaFunction_LuaFunction_new00); tolua_function(tolua_S,"registerValue",tolua_LuaFunction_LuaFunction_registerValue00); tolua_function(tolua_S,"Call",tolua_LuaFunction_LuaFunction_Call00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int lua_register_PluginAgeCheqLua_PluginAgeCheq(lua_State* tolua_S) { tolua_usertype(tolua_S,"sdkbox.PluginAgeCheq"); tolua_cclass(tolua_S,"PluginAgeCheq","sdkbox.PluginAgeCheq","",nullptr); tolua_beginmodule(tolua_S,"PluginAgeCheq"); tolua_function(tolua_S,"init", lua_PluginAgeCheqLua_PluginAgeCheq_init); tolua_function(tolua_S,"associateData", lua_PluginAgeCheqLua_PluginAgeCheq_associateData); tolua_function(tolua_S,"check", lua_PluginAgeCheqLua_PluginAgeCheq_check); tolua_endmodule(tolua_S); std::string typeName = typeid(sdkbox::PluginAgeCheq).name(); g_luaType[typeName] = "sdkbox.PluginAgeCheq"; g_typeCast["PluginAgeCheq"] = "sdkbox.PluginAgeCheq"; return 1; }
int lua_register_PrintSTM_PrintSTM(lua_State* tolua_S) { tolua_usertype(tolua_S,"PrintSTM"); tolua_cclass(tolua_S,"PrintSTM","PrintSTM","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"PrintSTM"); tolua_function(tolua_S,"say",lua_PrintSTM_PrintSTM_say); tolua_function(tolua_S,"init",lua_PrintSTM_PrintSTM_init); tolua_function(tolua_S,"create", lua_PrintSTM_PrintSTM_create); tolua_endmodule(tolua_S); std::string typeName = typeid(PrintSTM).name(); g_luaType[typeName] = "PrintSTM"; g_typeCast["PrintSTM"] = "PrintSTM"; return 1; }
/* Open function */ TOLUA_API int tolua_tfunction_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); #ifdef __cplusplus tolua_cclass(tolua_S,"Role","Role","",tolua_collect_Role); #else tolua_cclass(tolua_S,"Role","Role","",NULL); #endif tolua_beginmodule(tolua_S,"Role"); tolua_function(tolua_S,"new",tolua_tfunction_Role_new00); tolua_function(tolua_S,"new_local",tolua_tfunction_Role_new00_local); tolua_function(tolua_S,".call",tolua_tfunction_Role_new00_local); tolua_function(tolua_S,"SetLV",tolua_tfunction_Role_SetLV00); tolua_function(tolua_S,"SetExp",tolua_tfunction_Role_SetExp00); tolua_function(tolua_S,"GetLV",tolua_tfunction_Role_GetLV00); tolua_function(tolua_S,"Change",tolua_tfunction_Role_Change00); tolua_endmodule(tolua_S); #ifdef __cplusplus tolua_cclass(tolua_S,"TestClass","TestClass","",tolua_collect_TestClass); #else tolua_cclass(tolua_S,"TestClass","TestClass","",NULL); #endif tolua_beginmodule(tolua_S,"TestClass"); tolua_function(tolua_S,"new",tolua_tfunction_TestClass_new00); tolua_function(tolua_S,"new_local",tolua_tfunction_TestClass_new00_local); tolua_function(tolua_S,".call",tolua_tfunction_TestClass_new00_local); tolua_function(tolua_S,"delete",tolua_tfunction_TestClass_delete00); tolua_function(tolua_S,"LvAdd",tolua_tfunction_TestClass_LvAdd00); tolua_function(tolua_S,"MakeObj",tolua_tfunction_TestClass_MakeObj00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int tolua_ftk_file_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"FtkFile", "FtkFile", "", NULL); tolua_beginmodule(L, "FtkFile"); tolua_function(L, "GetInfo", lua_ftk_file_get_info); tolua_function(L, "GetMimeType", lua_ftk_file_get_mime_type); tolua_endmodule(L); tolua_endmodule(L); return 1; }
int lua_register_sls_world(lua_State* tolua_S) { tolua_usertype(tolua_S,"sls.World"); tolua_cclass(tolua_S,"World","sls.World","",nullptr); tolua_beginmodule(tolua_S,"World"); tolua_function(tolua_S,"getInstance",lua_register_sls_world_getInstance); tolua_function(tolua_S,"start",lua_register_sls_world_start); tolua_function(tolua_S,"step",lua_register_sls_world_step); tolua_function(tolua_S,"getWidthMax",lua_register_sls_world_getWidthMax); tolua_function(tolua_S,"getHeightMax",lua_register_sls_world_getHeightMax); tolua_function(tolua_S,"getAllSlothNum",lua_register_sls_world_getAllSlothNum); tolua_function(tolua_S,"getGeo",lua_register_sls_world_getGeo); tolua_function(tolua_S,"getSloth",lua_register_sls_world_getSloth); tolua_function(tolua_S,"getSlothNewComerNum",lua_register_sls_world_getSlothNewComerNum); tolua_endmodule(tolua_S); return 1; }
int lua_register_binarystream_BinaryStream(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccluaext.BinaryStream"); tolua_cclass(tolua_S,"BinaryStream","ccluaext.BinaryStream","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"BinaryStream"); tolua_function(tolua_S,"new",lua_binarystream_BinaryStream_constructor); tolua_function(tolua_S,"reset",lua_binarystream_BinaryStream_reset); tolua_function(tolua_S,"readInt",lua_binarystream_BinaryStream_readInt); tolua_function(tolua_S,"writeInt",lua_binarystream_BinaryStream_writeInt); tolua_function(tolua_S,"create", lua_binarystream_BinaryStream_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocoslua_ext::BinaryStream).name(); g_luaType[typeName] = "ccluaext.BinaryStream"; g_typeCast["BinaryStream"] = "ccluaext.BinaryStream"; return 1; }
int tolua_ftk_translator_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"FtkTranslator", "FtkTranslator", "", NULL); tolua_beginmodule(L, "FtkTranslator"); tolua_function(L, "Create", lua_ftk_translator_create); tolua_function(L, "GetText", lua_ftk_translator_get_text); tolua_function(L, "Destroy", lua_ftk_translator_destroy); tolua_endmodule(L); tolua_endmodule(L); return 1; }
int tolua_ftk_clipboard_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"FtkClipboard", "FtkClipboard", "", NULL); tolua_beginmodule(L, "FtkClipboard"); tolua_function(L, "HasData", lua_ftk_clipboard_has_data); tolua_function(L, "SetText", lua_ftk_clipboard_set_text); tolua_function(L, "GetText", lua_ftk_clipboard_get_text); tolua_endmodule(L); tolua_endmodule(L); return 1; }
/* Open function */ TOLUA_API int tolua_PressurePlateTile_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"PressurePlateTile","PressurePlateTile","Tile",NULL); tolua_beginmodule(tolua_S,"PressurePlateTile"); tolua_function(tolua_S,"setState",tolua_PressurePlateTile_PressurePlateTile_setState00); tolua_function(tolua_S,"isActivated",tolua_PressurePlateTile_PressurePlateTile_isActivated00); tolua_function(tolua_S,"setWeightThreshold",tolua_PressurePlateTile_PressurePlateTile_setWeightThreshold00); tolua_function(tolua_S,"setOnActivate",tolua_PressurePlateTile_PressurePlateTile_setOnActivate00); tolua_function(tolua_S,"setOnDeactivate",tolua_PressurePlateTile_PressurePlateTile_setOnDeactivate00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
//-------------------------------------- int lua_register_advertisement(lua_State* tolua_S) { tolua_usertype(tolua_S,"extend.Advertisement"); tolua_cclass(tolua_S,"Advertisement","extend.Advertisement","",nullptr); tolua_beginmodule(tolua_S,"Advertisement"); tolua_function(tolua_S, "getInstance", lua_cocos2dx_Advertisement_getInstance); tolua_function(tolua_S, "showADS", lua_cocos2dx_Advertisement_showADS); tolua_function(tolua_S, "getStatusADS", lua_cocos2dx_Advertisement_getStatusADS); tolua_function(tolua_S, "cancelADS", lua_cocos2dx_Advertisement_cancelADS); tolua_endmodule(tolua_S); std::string typeName = typeid(myextend::Advertisement).name(); g_luaType[typeName] = "extend.Advertisement"; g_typeCast["Advertisement"] = "extend.Advertisement"; return 1; }
/* Open lib function */ LUALIB_API int luaopen_LuaAPI (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"Global","Global","",NULL); tolua_beginmodule(tolua_S,"Global"); tolua_function(tolua_S,"getDataRootDirectory",tolua_LuaAPI_Global_getDataRootDirectory00); tolua_function(tolua_S,"setDataRootDirectory",tolua_LuaAPI_Global_setDataRootDirectory00); tolua_function(tolua_S,"setHero",tolua_LuaAPI_Global_setHero00); tolua_endmodule(tolua_S); tolua_function(tolua_S,"createGlobal",tolua_LuaAPI_createGlobal00); tolua_function(tolua_S,"getGlobal",tolua_LuaAPI_getGlobal00); tolua_endmodule(tolua_S); return 1; }
int lua_register_myunzip_MyUnZip(lua_State* tolua_S) { tolua_usertype(tolua_S,"MyUnZip"); tolua_cclass(tolua_S,"MyUnZip","MyUnZip","",nullptr); tolua_beginmodule(tolua_S,"MyUnZip"); tolua_function(tolua_S,"unregisterUnZipFinishHandler",lua_myunzip_MyUnZip_unregisterUnZipFinishHandler); tolua_function(tolua_S,"registerUnZipFinishHandler",lua_myunzip_MyUnZip_registerUnZipFinishHandler); tolua_function(tolua_S,"UnZipFile",lua_myunzip_MyUnZip_UnZipFile); tolua_function(tolua_S,"onUnZipFinish",lua_myunzip_MyUnZip_onUnZipFinish); tolua_function(tolua_S,"getInstance", lua_myunzip_MyUnZip_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(MyUnZip).name(); g_luaType[typeName] = "MyUnZip"; g_typeCast["MyUnZip"] = "MyUnZip"; return 1; }
//-------------------------------------- int lua_register_statistic(lua_State* tolua_S) { tolua_usertype(tolua_S,"extend.Statistic"); tolua_cclass(tolua_S,"Statistic","extend.Statistic","",nullptr); tolua_beginmodule(tolua_S,"Statistic"); tolua_function(tolua_S, "getInstance", lua_cocos2dx_Statistic_getInstance); tolua_function(tolua_S, "sendEvent", lua_cocos2dx_Statistic_sendEvent); tolua_function(tolua_S, "sendScreenName", lua_cocos2dx_Statistic_sendScreenName); tolua_function(tolua_S, "sendTime", lua_cocos2dx_Statistic_sendTime); tolua_function(tolua_S, "sendException", lua_cocos2dx_Statistic_sendException); tolua_endmodule(tolua_S); std::string typeName = typeid(myextend::Statistic).name(); g_luaType[typeName] = "extend.Statistic"; g_typeCast["Statistic"] = "extend.Statistic"; return 1; }
int lua_register_blue_tooth_lua_BlueToothControllerForCplus(lua_State* tolua_S) { tolua_usertype(tolua_S,"BlueToothControllerForCplus"); tolua_cclass(tolua_S,"BlueToothControllerForCplus","BlueToothControllerForCplus","",nullptr); tolua_beginmodule(tolua_S,"BlueToothControllerForCplus"); tolua_function(tolua_S,"sendMessage",lua_blue_tooth_lua_BlueToothControllerForCplus_sendMessage); tolua_function(tolua_S,"closeConnect",lua_blue_tooth_lua_BlueToothControllerForCplus_closeConnect); tolua_function(tolua_S,"getMessage",lua_blue_tooth_lua_BlueToothControllerForCplus_getMessage); tolua_function(tolua_S,"getConnect",lua_blue_tooth_lua_BlueToothControllerForCplus_getConnect); tolua_function(tolua_S,"getInstance", lua_blue_tooth_lua_BlueToothControllerForCplus_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(BlueToothControllerForCplus).name(); g_luaType[typeName] = "BlueToothControllerForCplus"; g_typeCast["BlueToothControllerForCplus"] = "BlueToothControllerForCplus"; return 1; }
void tolua_order_open(lua_State * L) { /* register user types */ tolua_usertype(L, TOLUA_CAST "order"); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_cclass(L, TOLUA_CAST "order", TOLUA_CAST "order", TOLUA_CAST "", NULL); tolua_beginmodule(L, TOLUA_CAST "order"); { tolua_function(L, TOLUA_CAST "token", tolua_order_get_token); } tolua_endmodule(L); } tolua_endmodule(L); }
int lua_register_cocos2dx_tui_TuiBase(lua_State* tolua_S) { tolua_usertype(tolua_S,"tui.TuiBase"); tolua_cclass(tolua_S,"TuiBase","tui.TuiBase","cc.CSceneExtension",nullptr); tolua_beginmodule(tolua_S,"TuiBase"); tolua_function(tolua_S,"getAutoRemoveUnusedSpriteFrame",lua_cocos2dx_tui_TuiBase_getAutoRemoveUnusedSpriteFrame); tolua_function(tolua_S,"setAutoRemoveUnusedSpriteFrame",lua_cocos2dx_tui_TuiBase_setAutoRemoveUnusedSpriteFrame); tolua_function(tolua_S, "setOnMessageScriptHandler", lua_cocos2dx_tui_TuiBase_setOnMessageScriptHandler); tolua_function(tolua_S,"init",lua_cocos2dx_tui_TuiBase_init); tolua_function(tolua_S,"new",lua_cocos2dx_tui_TuiBase_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_tui_TuiBase_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::tui::TuiBase).name(); g_luaType[typeName] = "tui.TuiBase"; g_typeCast["TuiBase"] = "tui.TuiBase"; return 1; }
int tolua_ftk_combo_box_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"FtkComboBox", "FtkComboBox", "FtkWidget", NULL); tolua_beginmodule(L, "FtkComboBox"); tolua_function(L, "Create", lua_ftk_combo_box_create); tolua_function(L, "GetText", lua_ftk_combo_box_get_text); tolua_function(L, "SetText", lua_ftk_combo_box_set_text); tolua_function(L, "Append", lua_ftk_combo_box_append); tolua_endmodule(L); tolua_endmodule(L); return 1; }
int lua_register_cocos2dx_NetScoket_NetUtil(lua_State* tolua_S) { tolua_usertype(tolua_S,"NetUtil"); tolua_cclass(tolua_S,"NetUtil","NetUtil","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"NetUtil"); tolua_function(tolua_S,"connect",lua_cocos2dx_NetScoket_NetUtil_connect); tolua_function(tolua_S,"init",lua_cocos2dx_NetScoket_NetUtil_init); tolua_function(tolua_S,"addLuaHandler",lua_cocos2dx_NetScoket_NetUtil_addLuaHandler); tolua_function(tolua_S,"callRPC",lua_cocos2dx_NetScoket_NetUtil_callRPC); tolua_function(tolua_S,"new",lua_cocos2dx_NetScoket_NetUtil_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_NetScoket_NetUtil_create); tolua_endmodule(tolua_S); std::string typeName = typeid(NetUtil).name(); g_luaType[typeName] = "NetUtil"; g_typeCast["NetUtil"] = "NetUtil"; return 1; }
int lua_register_cocos2dx_DrawNode3D(lua_State* L) { tolua_usertype(L,"cc.DrawNode3D"); tolua_cclass(L,"DrawNode3D","cc.DrawNode3D","cc.Node",nullptr); tolua_beginmodule(L,"DrawNode3D"); tolua_function(L,"getBlendFunc",lua_cocos2dx_DrawNode3D_getBlendFunc); tolua_function(L,"setBlendFunc",lua_cocos2dx_DrawNode3D_setBlendFunc01); tolua_function(L,"drawLine",lua_cocos2dx_DrawNode3D_drawLine); tolua_function(L,"clear",lua_cocos2dx_DrawNode3D_clear); tolua_function(L,"drawCube",lua_cocos2dx_DrawNode3D_drawCube); tolua_function(L,"create", lua_cocos2dx_DrawNode3D_create); tolua_endmodule(L); std::string typeName = typeid(cocos2d::DrawNode3D).name(); g_luaType[typeName] = "cc.DrawNode3D"; g_typeCast["DrawNode3D"] = "cc.DrawNode3D"; return 1; }
int lua_register_game_manager_Http(lua_State* tolua_S) { tolua_usertype(tolua_S,"game.manager.Http"); tolua_cclass(tolua_S,"Http","game.manager.Http","",nullptr); tolua_beginmodule(tolua_S,"Http"); tolua_function(tolua_S,"pushDownLoad", lua_game_manager_Http_pushDownLoad); tolua_function(tolua_S,"get", lua_game_manager_Http_get); tolua_function(tolua_S,"create", lua_game_manager_Http_getIntance); tolua_function(tolua_S,"removeDownLoad", lua_game_manager_Http_removeDownLoad); tolua_endmodule(tolua_S); std::string typeName = typeid(game::manager::Http).name(); g_luaType[typeName] = "game.manager.Http"; g_typeCast["Http"] = "game.manager.Http"; return 1; }