/* Open function */ int tolua_Interface_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,"State","State","",NULL); tolua_beginmodule(tolua_S,"State"); tolua_function(tolua_S,"getName",tolua_Interface_State_getName00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"Overseer","Overseer","",NULL); tolua_beginmodule(tolua_S,"Overseer"); tolua_function(tolua_S,"getSingletonPtr",tolua_Interface_Overseer_getSingletonPtr00); tolua_function(tolua_S,"getSingleton",tolua_Interface_Overseer_getSingleton00); tolua_function(tolua_S,"changeState",tolua_Interface_Overseer_changeState00); tolua_function(tolua_S,"pushState",tolua_Interface_Overseer_pushState00); tolua_function(tolua_S,"popState",tolua_Interface_Overseer_popState00); tolua_function(tolua_S,"getCurrentState",tolua_Interface_Overseer_getCurrentState00); tolua_function(tolua_S,"exit",tolua_Interface_Overseer_exit00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"TitleScreenState","TitleScreenState","State",NULL); tolua_beginmodule(tolua_S,"TitleScreenState"); tolua_function(tolua_S,"getStatus",tolua_Interface_TitleScreenState_getStatus00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int tolua_ftk_config_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"FtkConfig", "FtkConfig", "", NULL); tolua_beginmodule(L, "FtkConfig"); tolua_function(L, "GetTheme", lua_ftk_config_get_theme); tolua_function(L, "GetDataDir", lua_ftk_config_get_data_dir); tolua_function(L, "GetDataRootDir", lua_ftk_config_get_data_root_dir); tolua_function(L, "GetTestDataDir", lua_ftk_config_get_test_data_dir); tolua_function(L, "GetEnableCursor", lua_ftk_config_get_enable_cursor); tolua_function(L, "GetEnableStatusBar", lua_ftk_config_get_enable_status_bar); tolua_function(L, "SetTheme", lua_ftk_config_set_theme); tolua_function(L, "SetDataDir", lua_ftk_config_set_data_dir); tolua_function(L, "SetTestDataDir", lua_ftk_config_set_test_data_dir); tolua_function(L, "SetEnableCursor", lua_ftk_config_set_enable_cursor); tolua_function(L, "SetEnableStatusBar", lua_ftk_config_set_enable_status_bar); tolua_endmodule(L); tolua_endmodule(L); return 1; }
/* Open function */ TOLUA_API int tolua_tmodule_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_module(tolua_S,"A",1); tolua_beginmodule(tolua_S,"A"); tolua_variable(tolua_S,"a",tolua_get_A_a,tolua_set_A_a); tolua_module(tolua_S,"B",1); tolua_beginmodule(tolua_S,"B"); tolua_variable(tolua_S,"b",tolua_get_B_b,tolua_set_B_b); tolua_module(tolua_S,"C",1); tolua_beginmodule(tolua_S,"C"); tolua_variable(tolua_S,"c",tolua_get_C_c,tolua_set_C_c); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); tolua_module(tolua_S,"A",1); tolua_beginmodule(tolua_S,"A"); tolua_variable(tolua_S,"d",tolua_get_A_d,tolua_set_A_d); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_FadeUtility_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,"FADEUTILITYPARAMS","FADEUTILITYPARAMS","",tolua_collect_FADEUTILITYPARAMS); #else tolua_cclass(tolua_S,"FADEUTILITYPARAMS","FADEUTILITYPARAMS","",NULL); #endif tolua_beginmodule(tolua_S,"FADEUTILITYPARAMS"); tolua_variable(tolua_S,"ObjectName",tolua_get_FADEUTILITYPARAMS_ObjectName_ptr,tolua_set_FADEUTILITYPARAMS_ObjectName_ptr); tolua_variable(tolua_S,"CallbackEvent",tolua_get_FADEUTILITYPARAMS_CallbackEvent_ptr,tolua_set_FADEUTILITYPARAMS_CallbackEvent_ptr); tolua_variable(tolua_S,"FadeTime",tolua_get_FADEUTILITYPARAMS_FadeTime,tolua_set_FADEUTILITYPARAMS_FadeTime); tolua_variable(tolua_S,"StartFadeAmount",tolua_get_FADEUTILITYPARAMS_StartFadeAmount,tolua_set_FADEUTILITYPARAMS_StartFadeAmount); tolua_variable(tolua_S,"EndFadeAmount",tolua_get_FADEUTILITYPARAMS_EndFadeAmount,tolua_set_FADEUTILITYPARAMS_EndFadeAmount); tolua_variable(tolua_S,"bClearOverride",tolua_get_FADEUTILITYPARAMS_bClearOverride,tolua_set_FADEUTILITYPARAMS_bClearOverride); tolua_function(tolua_S,"new",tolua_FadeUtility_FADEUTILITYPARAMS_new00); tolua_function(tolua_S,"new_local",tolua_FadeUtility_FADEUTILITYPARAMS_new00_local); tolua_function(tolua_S,".call",tolua_FadeUtility_FADEUTILITYPARAMS_new00_local); tolua_function(tolua_S,"delete",tolua_FadeUtility_FADEUTILITYPARAMS_delete00); tolua_function(tolua_S,"SIZEOF",tolua_FadeUtility_FADEUTILITYPARAMS_SIZEOF00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_tconstant_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_constant(tolua_S,"FIRST",FIRST); tolua_constant(tolua_S,"SECOND",SECOND); tolua_constant(tolua_S,"ONE",ONE); tolua_constant(tolua_S,"TWO",TWO); tolua_module(tolua_S,"M",0); tolua_beginmodule(tolua_S,"M"); tolua_constant(tolua_S,"FIRST",M_FIRST); tolua_constant(tolua_S,"SECOND",M_SECOND); tolua_constant(tolua_S,"ONE",M_ONE); tolua_constant(tolua_S,"TWO",M_TWO); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"A","A","",NULL); tolua_beginmodule(tolua_S,"A"); tolua_constant(tolua_S,"FIRST",FIRST); tolua_constant(tolua_S,"SECOND",SECOND); tolua_constant(tolua_S,"ONE",A::ONE); tolua_constant(tolua_S,"TWO",A::TWO); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_AppstorePurchase_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,"CAppstorePurchase","CAppstorePurchase","",tolua_collect_CAppstorePurchase); #else tolua_cclass(tolua_S,"CAppstorePurchase","CAppstorePurchase","",NULL); #endif tolua_beginmodule(tolua_S,"CAppstorePurchase"); tolua_function(tolua_S,"new",tolua_AppstorePurchase_CAppstorePurchase_new00); tolua_function(tolua_S,"new_local",tolua_AppstorePurchase_CAppstorePurchase_new00_local); tolua_function(tolua_S,".call",tolua_AppstorePurchase_CAppstorePurchase_new00_local); tolua_function(tolua_S,"delete",tolua_AppstorePurchase_CAppstorePurchase_delete00); tolua_function(tolua_S,"getInstance",tolua_AppstorePurchase_CAppstorePurchase_getInstance00); tolua_function(tolua_S,"registerPaymentQueue",tolua_AppstorePurchase_CAppstorePurchase_registerPaymentQueue00); tolua_function(tolua_S,"registerIsCanMakePayments",tolua_AppstorePurchase_CAppstorePurchase_registerIsCanMakePayments00); tolua_function(tolua_S,"registerRequestProduct",tolua_AppstorePurchase_CAppstorePurchase_registerRequestProduct00); tolua_function(tolua_S,"excCallback",tolua_AppstorePurchase_CAppstorePurchase_excCallback00); tolua_function(tolua_S,"buyProduct",tolua_AppstorePurchase_CAppstorePurchase_buyProduct00); tolua_function(tolua_S,"excReuestProductCallback",tolua_AppstorePurchase_CAppstorePurchase_excReuestProductCallback00); tolua_function(tolua_S,"excPaymentQueue",tolua_AppstorePurchase_CAppstorePurchase_excPaymentQueue00); tolua_function(tolua_S,"setTranscationReceipt",tolua_AppstorePurchase_CAppstorePurchase_setTranscationReceipt00); tolua_function(tolua_S,"getTranscationReceipt",tolua_AppstorePurchase_CAppstorePurchase_getTranscationReceipt00); tolua_function(tolua_S,"setRecordTransactionErrorCode",tolua_AppstorePurchase_CAppstorePurchase_setRecordTransactionErrorCode00); tolua_function(tolua_S,"getRecordTransactionErrorCode",tolua_AppstorePurchase_CAppstorePurchase_getRecordTransactionErrorCode00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_XGameStateManger_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,"XGameStateManger","XGameStateManger","",NULL); tolua_beginmodule(tolua_S,"XGameStateManger"); tolua_function(tolua_S,"ChangeState",tolua_XGameStateManger_XGameStateManger_ChangeState00); tolua_function(tolua_S,"GetGameState",tolua_XGameStateManger_XGameStateManger_GetGameState00); tolua_function(tolua_S,"GetCurrState",tolua_XGameStateManger_XGameStateManger_GetCurrState00); tolua_function(tolua_S,"OnJump",tolua_XGameStateManger_XGameStateManger_OnJump00); tolua_function(tolua_S,"SetShowJoystick",tolua_XGameStateManger_XGameStateManger_SetShowJoystick00); tolua_function(tolua_S,"SetCityTouch",tolua_XGameStateManger_XGameStateManger_SetCityTouch00); tolua_function(tolua_S,"SetJoyStickStates",tolua_XGameStateManger_XGameStateManger_SetJoyStickStates00); tolua_function(tolua_S,"UseSkillByDir",tolua_XGameStateManger_XGameStateManger_UseSkillByDir00); tolua_function(tolua_S,"GetActivityRoleID",tolua_XGameStateManger_XGameStateManger_GetActivityRoleID00); tolua_function(tolua_S,"SetHEARTBEAT_REQ",tolua_XGameStateManger_XGameStateManger_SetHEARTBEAT_REQ00); tolua_function(tolua_S,"OnReLoadGame",tolua_XGameStateManger_XGameStateManger_OnReLoadGame00); tolua_function(tolua_S,"SetCheckWaiting",tolua_XGameStateManger_XGameStateManger_SetCheckWaiting00); tolua_function(tolua_S,"GetCheckWaiting",tolua_XGameStateManger_XGameStateManger_GetCheckWaiting00); tolua_function(tolua_S,"NetClose",tolua_XGameStateManger_XGameStateManger_NetClose00); tolua_function(tolua_S,"OnNetReLoadSucc",tolua_XGameStateManger_XGameStateManger_OnNetReLoadSucc00); tolua_function(tolua_S,"OnNetReLoadFaild",tolua_XGameStateManger_XGameStateManger_OnNetReLoadFaild00); tolua_function(tolua_S,"GetCurrMap",tolua_XGameStateManger_XGameStateManger_GetCurrMap00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_extensions_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,"CCPhysicsNode","CCPhysicsNode","CCNode",NULL); tolua_beginmodule(tolua_S,"CCPhysicsNode"); tolua_function(tolua_S,"getB2Body",tolua_extensions_CCPhysicsNode_getB2Body00); tolua_function(tolua_S,"setB2Body",tolua_extensions_CCPhysicsNode_setB2Body00); tolua_function(tolua_S,"getPTMRatio",tolua_extensions_CCPhysicsNode_getPTMRatio00); tolua_function(tolua_S,"setPTMRatio",tolua_extensions_CCPhysicsNode_setPTMRatio00); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsNode_create00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"CCPhysicsSprite","CCPhysicsSprite","CCSprite",NULL); tolua_beginmodule(tolua_S,"CCPhysicsSprite"); tolua_function(tolua_S,"getB2Body",tolua_extensions_CCPhysicsSprite_getB2Body00); tolua_function(tolua_S,"setB2Body",tolua_extensions_CCPhysicsSprite_setB2Body00); tolua_function(tolua_S,"getPTMRatio",tolua_extensions_CCPhysicsSprite_getPTMRatio00); tolua_function(tolua_S,"setPTMRatio",tolua_extensions_CCPhysicsSprite_setPTMRatio00); tolua_function(tolua_S,"createWithTexture",tolua_extensions_CCPhysicsSprite_createWithTexture00); tolua_function(tolua_S,"createWithTexture",tolua_extensions_CCPhysicsSprite_createWithTexture01); tolua_function(tolua_S,"createWithSpriteFrame",tolua_extensions_CCPhysicsSprite_createWithSpriteFrame00); tolua_function(tolua_S,"createWithSpriteFrameName",tolua_extensions_CCPhysicsSprite_createWithSpriteFrameName00); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsSprite_create00); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsSprite_create01); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsSprite_create02); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_DecalScript_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,"ADDDECALSPRITEMESSAGE","ADDDECALSPRITEMESSAGE","",tolua_collect_ADDDECALSPRITEMESSAGE); #else tolua_cclass(tolua_S,"ADDDECALSPRITEMESSAGE","ADDDECALSPRITEMESSAGE","",NULL); #endif tolua_beginmodule(tolua_S,"ADDDECALSPRITEMESSAGE"); tolua_variable(tolua_S,"m_Size",tolua_get_ADDDECALSPRITEMESSAGE_m_Size,tolua_set_ADDDECALSPRITEMESSAGE_m_Size); tolua_variable(tolua_S,"m_Position",tolua_get_ADDDECALSPRITEMESSAGE_m_Position_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Position_ptr); tolua_variable(tolua_S,"m_Normal",tolua_get_ADDDECALSPRITEMESSAGE_m_Normal_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Normal_ptr); tolua_variable(tolua_S,"m_TimeLinger",tolua_get_ADDDECALSPRITEMESSAGE_m_TimeLinger,tolua_set_ADDDECALSPRITEMESSAGE_m_TimeLinger); tolua_variable(tolua_S,"m_FadeTime",tolua_get_ADDDECALSPRITEMESSAGE_m_FadeTime,tolua_set_ADDDECALSPRITEMESSAGE_m_FadeTime); tolua_variable(tolua_S,"m_Color",tolua_get_ADDDECALSPRITEMESSAGE_m_Color,tolua_set_ADDDECALSPRITEMESSAGE_m_Color); tolua_variable(tolua_S,"m_Texture",tolua_get_ADDDECALSPRITEMESSAGE_m_Texture_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Texture_ptr); tolua_variable(tolua_S,"m_Effect",tolua_get_ADDDECALSPRITEMESSAGE_m_Effect_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Effect_ptr); tolua_variable(tolua_S,"m_hsTextureName",tolua_get_ADDDECALSPRITEMESSAGE_m_hsTextureName_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_hsTextureName_ptr); tolua_function(tolua_S,"new",tolua_DecalScript_ADDDECALSPRITEMESSAGE_new00); tolua_function(tolua_S,"new_local",tolua_DecalScript_ADDDECALSPRITEMESSAGE_new00_local); tolua_function(tolua_S,".call",tolua_DecalScript_ADDDECALSPRITEMESSAGE_new00_local); tolua_function(tolua_S,"delete",tolua_DecalScript_ADDDECALSPRITEMESSAGE_delete00); tolua_function(tolua_S,"SIZEOF",tolua_DecalScript_ADDDECALSPRITEMESSAGE_SIZEOF00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open lib function */ LUALIB_API int luaopen_client (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_module(tolua_S,"chat",0); tolua_beginmodule(tolua_S,"chat"); tolua_function(tolua_S,"base",tolua_client_chat_base00); tolua_endmodule(tolua_S); { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32, 99,104, 97,116, 46, 109,115,103, 40, 46, 46, 46, 41, 10, 99,104, 97,116, 46, 98, 97,115,101, 40,115,116,114,105,110,103, 46,102,111,114,109, 97,116, 40,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,110,100,32 }; if (!luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code")) { lua_pcall(tolua_S,0,LUA_MULTRET,0); } } /* end of embedded lua code */ tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_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 __cplusplus tolua_cclass(tolua_S,"Point","Point","",tolua_collect_Point); #else tolua_cclass(tolua_S,"Point","Point","",NULL); #endif tolua_beginmodule(tolua_S,"Point"); tolua_variable(tolua_S,"x",tolua_get_Point_x,tolua_set_Point_x); tolua_variable(tolua_S,"y",tolua_get_Point_y,tolua_set_Point_y); tolua_endmodule(tolua_S); tolua_array(tolua_S,"a",tolua_get_tarray_a,tolua_set_tarray_a); tolua_array(tolua_S,"p",tolua_get_tarray_p,NULL); tolua_array(tolua_S,"pp",tolua_get_tarray_pp,tolua_set_tarray_pp); tolua_module(tolua_S,"M",1); tolua_beginmodule(tolua_S,"M"); tolua_array(tolua_S,"a",tolua_get_tarray_M_ma,tolua_set_tarray_M_ma); tolua_array(tolua_S,"p",tolua_get_tarray_M_mp,NULL); tolua_array(tolua_S,"pp",tolua_get_tarray_M_mpp,tolua_set_tarray_M_mpp); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"Array","Array","",NULL); tolua_beginmodule(tolua_S,"Array"); tolua_array(tolua_S,"a",tolua_get_tarray_Array_a,tolua_set_tarray_Array_a); tolua_array(tolua_S,"p",tolua_get_tarray_Array_p,tolua_set_tarray_Array_p); tolua_array(tolua_S,"pp",tolua_get_tarray_Array_pp,tolua_set_tarray_Array_pp); tolua_endmodule(tolua_S); tolua_variable(tolua_S,"array",tolua_get_array,tolua_set_array); tolua_variable(tolua_S,"parray",tolua_get_parray_ptr,tolua_set_parray_ptr); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_Label_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_constant(tolua_S,"SMALL",SMALL); tolua_constant(tolua_S,"MEDIUM",MEDIUM); tolua_constant(tolua_S,"BIG",BIG); #ifdef __cplusplus tolua_cclass(tolua_S,"Label","Label","CCLabelTTF",tolua_collect_Label); #else tolua_cclass(tolua_S,"Label","Label","CCLabelTTF",NULL); #endif tolua_beginmodule(tolua_S,"Label"); tolua_function(tolua_S,"new",tolua_Label_Label_new00); tolua_function(tolua_S,"new_local",tolua_Label_Label_new00_local); tolua_function(tolua_S,".call",tolua_Label_Label_new00_local); tolua_function(tolua_S,"delete",tolua_Label_Label_delete00); tolua_function(tolua_S,"create",tolua_Label_Label_create00); tolua_function(tolua_S,"setPosition",tolua_Label_Label_setPosition00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_common_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_constant(tolua_S,"DENSITY_LDPI",DENSITY_LDPI); tolua_constant(tolua_S,"DENSITY_MDPI",DENSITY_MDPI); tolua_constant(tolua_S,"DENSITY_HDPI",DENSITY_HDPI); tolua_constant(tolua_S,"SCALE_MODE_BY_DENSITY",SCALE_MODE_BY_DENSITY); tolua_constant(tolua_S,"SCALE_MODE_BASE_SIZE_FIT_XY",SCALE_MODE_BASE_SIZE_FIT_XY); tolua_cclass(tolua_S,"wyDevice","wyDevice","",NULL); tolua_beginmodule(tolua_S,"wyDevice"); tolua_variable(tolua_S,"scaleMode",tolua_get_wyDevice_scaleMode,tolua_set_wyDevice_scaleMode); tolua_variable(tolua_S,"density",tolua_get_wyDevice_density,tolua_set_wyDevice_density); tolua_variable(tolua_S,"scaledDensity",tolua_get_wyDevice_scaledDensity,tolua_set_wyDevice_scaledDensity); tolua_variable(tolua_S,"defaultInDensity",tolua_get_wyDevice_defaultInDensity,tolua_set_wyDevice_defaultInDensity); tolua_variable(tolua_S,"apiLevel",tolua_get_wyDevice_apiLevel,tolua_set_wyDevice_apiLevel); tolua_variable(tolua_S,"maxTextureSize",tolua_get_wyDevice_maxTextureSize,tolua_set_wyDevice_maxTextureSize); tolua_variable(tolua_S,"baseWidth",tolua_get_wyDevice_baseWidth,tolua_set_wyDevice_baseWidth); tolua_variable(tolua_S,"baseHeight",tolua_get_wyDevice_baseHeight,tolua_set_wyDevice_baseHeight); tolua_variable(tolua_S,"baseScaleX",tolua_get_wyDevice_baseScaleX,tolua_set_wyDevice_baseScaleX); tolua_variable(tolua_S,"baseScaleY",tolua_get_wyDevice_baseScaleY,tolua_set_wyDevice_baseScaleY); tolua_variable(tolua_S,"winWidth",tolua_get_wyDevice_winWidth,tolua_set_wyDevice_winWidth); tolua_variable(tolua_S,"winHeight",tolua_get_wyDevice_winHeight,tolua_set_wyDevice_winHeight); tolua_variable(tolua_S,"realWidth",tolua_get_wyDevice_realWidth,tolua_set_wyDevice_realWidth); tolua_variable(tolua_S,"realHeight",tolua_get_wyDevice_realHeight,tolua_set_wyDevice_realHeight); tolua_function(tolua_S,"getLanguage",tolua_common_wyDevice_getLanguage00); tolua_function(tolua_S,"getCountry",tolua_common_wyDevice_getCountry00); tolua_function(tolua_S,"getDeviceId",tolua_common_wyDevice_getDeviceId00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_tdirective_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); tolua_variable(tolua_S,"a",tolua_get_a,tolua_set_a); { a = 3; } { /* begin embedded lua code */ static unsigned char B[] = { 10, 65, 32, 61, 32, 52,32 }; lua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code"); } /* end of embedded lua code */ { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32,102,117,110, 99, 32, 40, 41, 10,114,101,116,117,114,110, 32, 53, 10,101,110,100, 32 }; lua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code"); } /* end of embedded lua code */ tolua_endmodule(tolua_S); return 1; }
/* Open lib function */ LUALIB_API int luaopen_tdirective (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,1); tolua_beginmodule(tolua_S,NULL); tolua_variable(tolua_S,"a",tolua_get_a,tolua_set_a); { a = 3; } { /* begin embedded lua code */ static unsigned char B[] = { 10, 65, 32, 61, 32, 52,32 }; luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") || lua_pcall(tolua_S,0,LUA_MULTRET,0); } /* end of embedded lua code */ { /* begin embedded lua code */ static unsigned char B[] = { 10,100,111,102,105,108,101, 40, 34,109,121, 97,115,115,101, 114,116, 46,108,117, 97, 34, 41, 10,102,117,110, 99,116,105, 111,110, 32,102,117,110, 99, 32, 40, 41, 10,114,101,116,117, 114,110, 32, 53, 10,101,110,100,32 }; luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") || lua_pcall(tolua_S,0,LUA_MULTRET,0); } /* end of embedded lua code */ tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_GUID_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,"CGUID","CGUID","",tolua_collect_CGUID); #else tolua_cclass(tolua_S,"CGUID","CGUID","",NULL); #endif tolua_beginmodule(tolua_S,"CGUID"); tolua_function(tolua_S,"new",tolua_GUID_CGUID_new00); tolua_function(tolua_S,"new_local",tolua_GUID_CGUID_new00_local); tolua_function(tolua_S,".call",tolua_GUID_CGUID_new00_local); tolua_function(tolua_S,"delete",tolua_GUID_CGUID_delete00); tolua_function(tolua_S,"new",tolua_GUID_CGUID_new01); tolua_function(tolua_S,"new_local",tolua_GUID_CGUID_new01_local); tolua_function(tolua_S,".call",tolua_GUID_CGUID_new01_local); tolua_function(tolua_S,".eq",tolua_GUID_CGUID__eq00); tolua_function(tolua_S,"tostring",tolua_GUID_CGUID_tostring00); tolua_function(tolua_S,"IsInvalid",tolua_GUID_CGUID_IsInvalid00); tolua_function(tolua_S,"CreateGUID",tolua_GUID_CGUID_CreateGUID00); tolua_variable(tolua_S,"GUID_INVALID",tolua_get_CGUID_GUID_INVALID,tolua_set_CGUID_GUID_INVALID); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
//init TOLUA_API int tolua_Network_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); /// MessageHandler tolua_cclass(tolua_S, "MessageHandler", "MessageHandler", "", NULL); tolua_beginmodule(tolua_S, "MessageHandler"); tolua_function(tolua_S, "sShareInstance", tolua_MessageHandler_sShareInstance); tolua_function(tolua_S, "getWildMsgPackage", tolua_MessageHandler_GetCurWildMsgPackage); tolua_function(tolua_S, "getPPVERooms", tolua_MessageHandler_GetPPVERooms); tolua_function(tolua_S, "createRoom", tolua_MessageHandler_createRoom); tolua_function(tolua_S, "getRoomList", tolua_MessageHandler_getRoomList); tolua_function(tolua_S, "getRoomData", tolua_MessageHandler_getRoomData); tolua_function(tolua_S, "exitRoom", tolua_MessageHandler_exitRoom); tolua_function(tolua_S, "setReady", tolua_MessageHandler_setReady); tolua_function(tolua_S, "joinRoom", tolua_MessageHandler_joinRoom); tolua_function(tolua_S, "startGame", tolua_MessageHandler_startGame); tolua_function(tolua_S, "kickOffFromRoom", tolua_MessageHandler_kickOffFromRoom); tolua_function(tolua_S, "pvp_createRoom_1vs1", tolua_MessageHandler_pvp_createRoom_1vs1); tolua_function(tolua_S, "pvp_createRoom_2vs2", tolua_MessageHandler_pvp_createRoom_2vs2); tolua_function(tolua_S, "pvp_getRoomList", tolua_MessageHandler_pvp_getRoomList); tolua_function(tolua_S, "pvp_getRoomData", tolua_MessageHandler_pvp_getRoomData); tolua_function(tolua_S, "pvp_exitRoom", tolua_MessageHandler_pvp_exitRoom); tolua_function(tolua_S, "pvp_setReady", tolua_MessageHandler_pvp_setReady); tolua_function(tolua_S, "pvp_joinRoom", tolua_MessageHandler_pvp_joinRoom); tolua_function(tolua_S, "pvp_startGame", tolua_MessageHandler_pvp_startGame); tolua_function(tolua_S, "pvp_kickOffFromRoom", tolua_MessageHandler_pvp_kickOffFromRoom); tolua_function(tolua_S, "pvp_changeSeat", tolua_MessageHandler_pvp_changeSeat); tolua_endmodule(tolua_S); /// WILD_MSG_PACKAGE decode operation tolua_cclass(tolua_S, "WILD_MSG_PACKAGE", "WILD_MSG_PACKAGE", "", NULL); tolua_beginmodule(tolua_S, "WILD_MSG_PACKAGE"); tolua_function(tolua_S, "GetCmd", tolua_WildMsg_GetCMD); tolua_function(tolua_S, "ReadInt32", tolua_ReadBody_Int32); tolua_function(tolua_S, "ReadShort16", tolua_ReadBody_Short16); tolua_function(tolua_S, "ReadNumber32", tolua_ReadBody_Number32); tolua_function(tolua_S, "ReadString", tolua_ReadBody_String); tolua_function(tolua_S, "ReadChar", tolua_ReadBody_Char); tolua_function(tolua_S, "ReadBuff", tolua_ReadBody_readbuff); tolua_endmodule(tolua_S); ///WILD_MSG_PACKAGE encode operation tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_tvariable_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); tolua_variable(tolua_S,"i",tolua_get_i,tolua_set_i); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_bindings_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_module(tolua_S,"atlantis",1); tolua_beginmodule(tolua_S,"atlantis"); tolua_cclass(tolua_S,"unit","unit","",NULL); tolua_beginmodule(tolua_S,"unit"); tolua_variable(tolua_S,"id",tolua_get_unit_id,tolua_set_unit_id); tolua_variable(tolua_S,"number",tolua_get_unit_number,tolua_set_unit_number); tolua_variable(tolua_S,"money",tolua_get_unit_money,tolua_set_unit_money); tolua_variable(tolua_S,"faction",tolua_get_unit_faction_ptr,NULL); tolua_variable(tolua_S,"region",tolua_get_unit_region_ptr,NULL); tolua_variable(tolua_S,"name",tolua_get_unit_name,tolua_set_unit_name); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"faction","faction","",NULL); tolua_beginmodule(tolua_S,"faction"); tolua_variable(tolua_S,"id",tolua_get_faction_id,tolua_set_faction_id); tolua_variable(tolua_S,"name",tolua_get_faction_name,tolua_set_faction_name); tolua_variable(tolua_S,"email",tolua_get_faction_email,tolua_set_faction_email); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"region","region","",NULL); tolua_beginmodule(tolua_S,"region"); tolua_variable(tolua_S,"id",tolua_get_region_id,tolua_set_region_id); tolua_variable(tolua_S,"x",tolua_get_region_x,tolua_set_region_x); tolua_variable(tolua_S,"y",tolua_get_region_y,tolua_set_region_y); tolua_variable(tolua_S,"peasants",tolua_get_region_peasants,tolua_set_region_peasants); tolua_variable(tolua_S,"money",tolua_get_region_money,tolua_set_region_money); tolua_variable(tolua_S,"name",tolua_get_region_name,tolua_set_region_name); tolua_variable(tolua_S,"terrain",tolua_get_region_terrain,tolua_set_region_terrain); tolua_endmodule(tolua_S); tolua_module(tolua_S,"regions",0); tolua_beginmodule(tolua_S,"regions"); tolua_function(tolua_S,"create",tolua_bindings_atlantis_regions_create00); tolua_function(tolua_S,"get",tolua_bindings_atlantis_regions_get00); tolua_endmodule(tolua_S); tolua_module(tolua_S,"factions",0); tolua_beginmodule(tolua_S,"factions"); tolua_function(tolua_S,"create",tolua_bindings_atlantis_factions_create00); tolua_function(tolua_S,"get",tolua_bindings_atlantis_factions_get00); tolua_endmodule(tolua_S); tolua_variable(tolua_S,"turn",tolua_get_atlantis_turn,tolua_set_atlantis_turn); tolua_function(tolua_S,"free_game",tolua_bindings_atlantis_free_game00); tolua_function(tolua_S,"read_config",tolua_bindings_atlantis_read_config00); tolua_function(tolua_S,"read_game",tolua_bindings_atlantis_read_game00); tolua_function(tolua_S,"write_game",tolua_bindings_atlantis_write_game00); tolua_function(tolua_S,"write_reports",tolua_bindings_atlantis_write_reports00); tolua_function(tolua_S,"read_orders",tolua_bindings_atlantis_read_orders00); tolua_function(tolua_S,"process",tolua_bindings_atlantis_process00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_CCGLProgram_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_constant(tolua_S,"kCCVertexAttrib_Position",kCCVertexAttrib_Position); tolua_constant(tolua_S,"kCCVertexAttrib_Color",kCCVertexAttrib_Color); tolua_constant(tolua_S,"kCCVertexAttrib_TexCoords",kCCVertexAttrib_TexCoords); tolua_constant(tolua_S,"kCCVertexAttrib_MAX",kCCVertexAttrib_MAX); tolua_constant(tolua_S,"kCCUniformPMatrix",kCCUniformPMatrix); tolua_constant(tolua_S,"kCCUniformMVMatrix",kCCUniformMVMatrix); tolua_constant(tolua_S,"kCCUniformMVPMatrix",kCCUniformMVPMatrix); tolua_constant(tolua_S,"kCCUniformTime",kCCUniformTime); tolua_constant(tolua_S,"kCCUniformSinTime",kCCUniformSinTime); tolua_constant(tolua_S,"kCCUniformCosTime",kCCUniformCosTime); tolua_constant(tolua_S,"kCCUniformRandom01",kCCUniformRandom01); tolua_constant(tolua_S,"kCCUniformSampler",kCCUniformSampler); tolua_constant(tolua_S,"kCCUniform_MAX",kCCUniform_MAX); #ifdef __cplusplus tolua_cclass(tolua_S,"CCGLProgram","CCGLProgram","CCObject",tolua_collect_CCGLProgram); #else tolua_cclass(tolua_S,"CCGLProgram","CCGLProgram","CCObject",NULL); #endif tolua_beginmodule(tolua_S,"CCGLProgram"); tolua_function(tolua_S,"create",tolua_CCGLProgram_CCGLProgram_create00); tolua_function(tolua_S,"new",tolua_CCGLProgram_CCGLProgram_new00); tolua_function(tolua_S,"new_local",tolua_CCGLProgram_CCGLProgram_new00_local); tolua_function(tolua_S,".call",tolua_CCGLProgram_CCGLProgram_new00_local); tolua_function(tolua_S,"delete",tolua_CCGLProgram_CCGLProgram_delete00); tolua_function(tolua_S,"initWithVertexShaderByteArray",tolua_CCGLProgram_CCGLProgram_initWithVertexShaderByteArray00); tolua_function(tolua_S,"initWithVertexShaderFilename",tolua_CCGLProgram_CCGLProgram_initWithVertexShaderFilename00); tolua_function(tolua_S,"addAttribute",tolua_CCGLProgram_CCGLProgram_addAttribute00); tolua_function(tolua_S,"link",tolua_CCGLProgram_CCGLProgram_link00); tolua_function(tolua_S,"use",tolua_CCGLProgram_CCGLProgram_use00); tolua_function(tolua_S,"updateUniforms",tolua_CCGLProgram_CCGLProgram_updateUniforms00); tolua_function(tolua_S,"setUniformLocationWith1i",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith1i00); tolua_function(tolua_S,"setUniformLocationWith1f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith1f00); tolua_function(tolua_S,"setUniformLocationWith2f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith2f00); tolua_function(tolua_S,"setUniformLocationWith3f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith3f00); tolua_function(tolua_S,"setUniformLocationWith4f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith4f00); tolua_function(tolua_S,"setUniformLocationWith2fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith2fv00); tolua_function(tolua_S,"setUniformLocationWith3fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith3fv00); tolua_function(tolua_S,"setUniformLocationWith4fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith4fv00); tolua_function(tolua_S,"setUniformLocationWithMatrix4fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWithMatrix4fv00); tolua_function(tolua_S,"setUniformsForBuiltins",tolua_CCGLProgram_CCGLProgram_setUniformsForBuiltins00); tolua_function(tolua_S,"vertexShaderLog",tolua_CCGLProgram_CCGLProgram_vertexShaderLog00); tolua_function(tolua_S,"fragmentShaderLog",tolua_CCGLProgram_CCGLProgram_fragmentShaderLog00); tolua_function(tolua_S,"programLog",tolua_CCGLProgram_CCGLProgram_programLog00); tolua_function(tolua_S,"reset",tolua_CCGLProgram_CCGLProgram_reset00); tolua_function(tolua_S,"getProgram",tolua_CCGLProgram_CCGLProgram_getProgram00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_LuaMainAPI_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_function(tolua_S,"API_LoadLuaFile",tolua_LuaMainAPI_API_LoadLuaFile00); tolua_function(tolua_S,"API_LuaSample",tolua_LuaMainAPI_API_LuaSample00); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_CCGUI_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,"CCValue","CCValue","",NULL); tolua_beginmodule(tolua_S,"CCValue"); tolua_function(tolua_S,"make",tolua_CCGUI_CCValue_make00); tolua_function(tolua_S,"putString",tolua_CCGUI_CCValue_putString00); tolua_function(tolua_S,"putNumber",tolua_CCGUI_CCValue_putNumber00); tolua_function(tolua_S,"putInt",tolua_CCGUI_CCValue_putInt00); tolua_function(tolua_S,"putBool",tolua_CCGUI_CCValue_putBool00); tolua_function(tolua_S,"getString",tolua_CCGUI_CCValue_getString00); tolua_function(tolua_S,"getNumber",tolua_CCGUI_CCValue_getNumber00); tolua_function(tolua_S,"getInt",tolua_CCGUI_CCValue_getInt00); tolua_function(tolua_S,"getBool",tolua_CCGUI_CCValue_getBool00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"Subject","Subject","",NULL); tolua_beginmodule(tolua_S,"Subject"); tolua_function(tolua_S,"notify",tolua_CCGUI_Subject_notify00); tolua_function(tolua_S,"attach",tolua_CCGUI_Subject_attach00); tolua_function(tolua_S,"detach",tolua_CCGUI_Subject_detach00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"CCUtil","CCUtil","",NULL); tolua_beginmodule(tolua_S,"CCUtil"); tolua_function(tolua_S,"className",tolua_CCGUI_CCUtil_className00); tolua_function(tolua_S,"emptydata",tolua_CCGUI_CCUtil_emptydata00); tolua_function(tolua_S,"setNodePri",tolua_CCGUI_CCUtil_setNodePri00); tolua_function(tolua_S,"getNodePri",tolua_CCGUI_CCUtil_getNodePri00); tolua_function(tolua_S,"actionFunc",tolua_CCGUI_CCUtil_actionFunc00); tolua_function(tolua_S,"subject",tolua_CCGUI_CCUtil_subject00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"MCCUtil","MCCUtil","",NULL); tolua_beginmodule(tolua_S,"MCCUtil"); tolua_function(tolua_S,"bundleUrl",tolua_CCGUI_MCCUtil_bundleUrl00); tolua_function(tolua_S,"documentUrl",tolua_CCGUI_MCCUtil_documentUrl00); tolua_function(tolua_S,"jclock",tolua_CCGUI_MCCUtil_jclock00); tolua_function(tolua_S,"getMacAddress",tolua_CCGUI_MCCUtil_getMacAddress00); tolua_function(tolua_S,"isIPad",tolua_CCGUI_MCCUtil_isIPad00); tolua_function(tolua_S,"isEnglish",tolua_CCGUI_MCCUtil_isEnglish00); tolua_function(tolua_S,"checkNet",tolua_CCGUI_MCCUtil_checkNet00); tolua_function(tolua_S,"showAlert",tolua_CCGUI_MCCUtil_showAlert00); tolua_function(tolua_S,"showHub",tolua_CCGUI_MCCUtil_showHub00); tolua_function(tolua_S,"hideHub",tolua_CCGUI_MCCUtil_hideHub00); tolua_function(tolua_S,"download",tolua_CCGUI_MCCUtil_download00); tolua_function(tolua_S,"getData",tolua_CCGUI_MCCUtil_getData00); tolua_function(tolua_S,"getArray",tolua_CCGUI_MCCUtil_getArray00); tolua_function(tolua_S,"setArray",tolua_CCGUI_MCCUtil_setArray00); tolua_function(tolua_S,"setData",tolua_CCGUI_MCCUtil_setData00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_toluaapi_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_function(tolua_S,"resetPropList",tolua_toluaapi_resetPropList00); tolua_function(tolua_S,"addPropGroup",tolua_toluaapi_addPropGroup00); tolua_function(tolua_S,"addPropItem",tolua_toluaapi_addPropItem00); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_MoviePlayer_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,"MoviePlayer","MoviePlayer","",tolua_collect_MoviePlayer); #else tolua_cclass(tolua_S,"MoviePlayer","MoviePlayer","",NULL); #endif tolua_beginmodule(tolua_S,"MoviePlayer"); tolua_function(tolua_S,"new",tolua_MoviePlayer_MoviePlayer_new00); tolua_function(tolua_S,"new_local",tolua_MoviePlayer_MoviePlayer_new00_local); tolua_function(tolua_S,".call",tolua_MoviePlayer_MoviePlayer_new00_local); tolua_function(tolua_S,"delete",tolua_MoviePlayer_MoviePlayer_delete00); tolua_function(tolua_S,"load",tolua_MoviePlayer_MoviePlayer_load00); tolua_function(tolua_S,"isPlayable",tolua_MoviePlayer_MoviePlayer_isPlayable00); tolua_function(tolua_S,"getWidth",tolua_MoviePlayer_MoviePlayer_getWidth00); tolua_function(tolua_S,"getHeight",tolua_MoviePlayer_MoviePlayer_getHeight00); tolua_function(tolua_S,"getAspectRatio",tolua_MoviePlayer_MoviePlayer_getAspectRatio00); tolua_function(tolua_S,"getPixelAspectRatio",tolua_MoviePlayer_MoviePlayer_getPixelAspectRatio00); tolua_function(tolua_S,"getDuration",tolua_MoviePlayer_MoviePlayer_getDuration00); tolua_function(tolua_S,"getFramerate",tolua_MoviePlayer_MoviePlayer_getFramerate00); tolua_function(tolua_S,"getNumFrames",tolua_MoviePlayer_MoviePlayer_getNumFrames00); tolua_function(tolua_S,"hasAlpha",tolua_MoviePlayer_MoviePlayer_hasAlpha00); tolua_function(tolua_S,"hasVisuals",tolua_MoviePlayer_MoviePlayer_hasVisuals00); tolua_function(tolua_S,"hasAudio",tolua_MoviePlayer_MoviePlayer_hasAudio00); tolua_function(tolua_S,"getCurrentTime",tolua_MoviePlayer_MoviePlayer_getCurrentTime00); tolua_function(tolua_S,"seekToTime",tolua_MoviePlayer_MoviePlayer_seekToTime00); tolua_function(tolua_S,"seekToFrame",tolua_MoviePlayer_MoviePlayer_seekToFrame00); tolua_function(tolua_S,"seekToStart",tolua_MoviePlayer_MoviePlayer_seekToStart00); tolua_function(tolua_S,"seekToEnd",tolua_MoviePlayer_MoviePlayer_seekToEnd00); tolua_function(tolua_S,"setActiveSegment",tolua_MoviePlayer_MoviePlayer_setActiveSegment00); tolua_function(tolua_S,"resetActiveSegment",tolua_MoviePlayer_MoviePlayer_resetActiveSegment00); tolua_function(tolua_S,"setLoop",tolua_MoviePlayer_MoviePlayer_setLoop00); tolua_function(tolua_S,"stepForward",tolua_MoviePlayer_MoviePlayer_stepForward00); tolua_function(tolua_S,"stepBackward",tolua_MoviePlayer_MoviePlayer_stepBackward00); tolua_function(tolua_S,"setRate",tolua_MoviePlayer_MoviePlayer_setRate00); tolua_function(tolua_S,"setVolume",tolua_MoviePlayer_MoviePlayer_setVolume00); tolua_function(tolua_S,"getVolume",tolua_MoviePlayer_MoviePlayer_getVolume00); tolua_function(tolua_S,"isPlaying",tolua_MoviePlayer_MoviePlayer_isPlaying00); tolua_function(tolua_S,"isDone",tolua_MoviePlayer_MoviePlayer_isDone00); tolua_function(tolua_S,"play",tolua_MoviePlayer_MoviePlayer_play00); tolua_function(tolua_S,"stop",tolua_MoviePlayer_MoviePlayer_stop00); tolua_function(tolua_S,"draw",tolua_MoviePlayer_MoviePlayer_draw00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open lib function */ LUALIB_API int luaopen_tinheritance (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,"A","A","",tolua_collect_A); #else tolua_cclass(tolua_S,"A","A","",NULL); #endif tolua_beginmodule(tolua_S,"A"); tolua_function(tolua_S,"new",tolua_tinheritance_A_new00); tolua_function(tolua_S,"delete",tolua_tinheritance_A_delete00); tolua_function(tolua_S,"aname",tolua_tinheritance_A_aname00); tolua_function(tolua_S,"name",tolua_tinheritance_A_name00); tolua_endmodule(tolua_S); #ifdef __cplusplus tolua_cclass(tolua_S,"B","B","A",tolua_collect_B); #else tolua_cclass(tolua_S,"B","B","A",NULL); #endif tolua_beginmodule(tolua_S,"B"); tolua_function(tolua_S,"new",tolua_tinheritance_B_new00); tolua_function(tolua_S,"delete",tolua_tinheritance_B_delete00); tolua_function(tolua_S,"name",tolua_tinheritance_B_name00); tolua_endmodule(tolua_S); #ifdef __cplusplus tolua_cclass(tolua_S,"C","C","B",tolua_collect_C); #else tolua_cclass(tolua_S,"C","C","B",NULL); #endif tolua_beginmodule(tolua_S,"C"); tolua_function(tolua_S,"new",tolua_tinheritance_C_new00); tolua_function(tolua_S,"delete",tolua_tinheritance_C_delete00); tolua_function(tolua_S,"name",tolua_tinheritance_C_name00); tolua_endmodule(tolua_S); #ifdef __cplusplus tolua_cclass(tolua_S,"D","D","C",tolua_collect_D); #else tolua_cclass(tolua_S,"D","D","C",NULL); #endif tolua_beginmodule(tolua_S,"D"); tolua_function(tolua_S,"new",tolua_tinheritance_D_new00); tolua_function(tolua_S,"delete",tolua_tinheritance_D_delete00); tolua_function(tolua_S,"name",tolua_tinheritance_D_name00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int tolua_ftk_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"Ftk", "Ftk", "", NULL); tolua_beginmodule(L, "Ftk"); tolua_function(L, "DefaultDisplay", lua_ftk_default_display); tolua_function(L, "DefaultMainLoop", lua_ftk_default_main_loop); tolua_function(L, "DefaultLogLevel", lua_ftk_default_log_level); tolua_function(L, "DefaultWndManager", lua_ftk_default_wnd_manager); tolua_function(L, "DefaultStatusPanel", lua_ftk_default_status_panel); tolua_function(L, "DefaultBitmapFactory", lua_ftk_default_bitmap_factory); tolua_function(L, "DefaultSourcesManager", lua_ftk_default_sources_manager); tolua_function(L, "SharedCanvas", lua_ftk_shared_canvas); tolua_function(L, "DefaultTheme", lua_ftk_default_theme); tolua_function(L, "PrimarySource", lua_ftk_primary_source); tolua_function(L, "DefaultAllocator", lua_ftk_default_allocator); tolua_function(L, "DefaultConfig", lua_ftk_default_config); tolua_function(L, "DefaultInputMethodManager", lua_ftk_default_input_method_manager); tolua_function(L, "DefaultInputMethodPreeditor", lua_ftk_default_input_method_preeditor); tolua_function(L, "SetDisplay", lua_ftk_set_display); tolua_function(L, "SetMainLoop", lua_ftk_set_main_loop); tolua_function(L, "SetLogLevel", lua_ftk_set_log_level); tolua_function(L, "SetStatusPanel", lua_ftk_set_status_panel); tolua_function(L, "SetWndManager", lua_ftk_set_wnd_manager); tolua_function(L, "SetBitmapFactory", lua_ftk_set_bitmap_factory); tolua_function(L, "SetSourcesManager", lua_ftk_set_sources_manager); tolua_function(L, "SetSharedCanvas", lua_ftk_set_shared_canvas); tolua_function(L, "SetTheme", lua_ftk_set_theme); tolua_function(L, "SetConfig", lua_ftk_set_config); tolua_function(L, "SetPrimarySource", lua_ftk_set_primary_source); tolua_function(L, "SetAllocator", lua_ftk_set_allocator); tolua_function(L, "SetInputMethodManager", lua_ftk_set_input_method_manager); tolua_function(L, "SetInputMethodPreeditor", lua_ftk_set_input_method_preeditor); tolua_function(L, "Init", lua_ftk_init); tolua_function(L, "Run", lua_ftk_run); tolua_function(L, "Quit", lua_ftk_quit); tolua_function(L, "Tips", lua_ftk_tips); tolua_function(L, "Warning", lua_ftk_warning); tolua_function(L, "Question", lua_ftk_question); tolua_function(L, "Infomation", lua_ftk_infomation); tolua_endmodule(L); tolua_endmodule(L); 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_StatsEnumToLua_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_constant(tolua_S,"LEVEL",LEVEL); tolua_constant(tolua_S,"HP",HP); tolua_constant(tolua_S,"APOW",APOW); tolua_constant(tolua_S,"MPOW",MPOW); tolua_constant(tolua_S,"ADEF",ADEF); tolua_constant(tolua_S,"MDEF",MDEF); tolua_endmodule(tolua_S); return 1; }
/* 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 */ int tolua_Logger_Interface_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,"Logger","Logger","",NULL); tolua_beginmodule(tolua_S,"Logger"); tolua_function(tolua_S,"Instance",tolua_Logger_Interface_Logger_Instance00); tolua_function(tolua_S,"Log",tolua_Logger_Interface_Logger_Log00); tolua_function(tolua_S,"Progress",tolua_Logger_Interface_Logger_Progress00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }