//打开baseobject库 int player_trade_open(lua_State* L) { tolua_open(L); player_trade_open_reg_types(L); 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); tolua_function(L,"new_local",player_trade_new_local); tolua_function(L,"delete",player_trade_delete); tolua_function(L,"open_trade_page",player_trade_open_trade_page); tolua_function(L,"open_trade_dialog",player_trade_open_trade_dialog); tolua_function(L,"player_trade_get_my_plug_id",player_trade_get_my_plug_id); tolua_function(L,"player_trade_get_you_id",player_trade_get_you_id); tolua_function(L,"player_trade_get_session_id",player_trade_get_session_id); //tolua_function(L,"player_trade_get_goods_id",player_trade_get_goods_id); //tolua_function(L,"player_trade_get_goods_guid",player_trade_get_goods_guid); } tolua_endmodule(L); } tolua_endmodule(L); } tolua_endmodule(L); return 1; }
void tolua_gmtool_open(lua_State * L) { /* register user types */ tolua_usertype(L, TOLUA_CAST "tag_iterator"); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_module(L, TOLUA_CAST "gmtool", 0); tolua_beginmodule(L, TOLUA_CAST "gmtool"); { tolua_function(L, TOLUA_CAST "open", &tolua_state_open); tolua_function(L, TOLUA_CAST "close", &tolua_state_close); tolua_function(L, TOLUA_CAST "editor", &tolua_run_mapper); tolua_function(L, TOLUA_CAST "get_selection", &tolua_selected_regions); tolua_function(L, TOLUA_CAST "get_cursor", &tolua_current_region); tolua_function(L, TOLUA_CAST "highlight", &tolua_highlight_region); tolua_function(L, TOLUA_CAST "select", &tolua_select_region); tolua_function(L, TOLUA_CAST "select_at", &tolua_select_coordinate); tolua_function(L, TOLUA_CAST "set_display", &tolua_set_display); tolua_function(L, TOLUA_CAST "make_block", &tolua_make_block); tolua_function(L, TOLUA_CAST "make_island", &tolua_make_island); } tolua_endmodule(L); } tolua_endmodule(L); }
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_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; }
void tolua_storage_open(lua_State * L) { /* register user types */ tolua_usertype(L, TOLUA_CAST "storage"); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_cclass(L, TOLUA_CAST "storage", TOLUA_CAST "storage", TOLUA_CAST "", NULL); tolua_beginmodule(L, TOLUA_CAST "storage"); { tolua_function(L, TOLUA_CAST "__tostring", tolua_storage_tostring); tolua_function(L, TOLUA_CAST "write", tolua_storage_write); tolua_function(L, TOLUA_CAST "read_int", tolua_storage_read_int); tolua_function(L, TOLUA_CAST "read_float", tolua_storage_read_float); tolua_function(L, TOLUA_CAST "write_unit", tolua_storage_write_unit); tolua_function(L, TOLUA_CAST "read_unit", tolua_storage_read_unit); tolua_function(L, TOLUA_CAST "close", tolua_storage_close); tolua_function(L, TOLUA_CAST "create", tolua_storage_create); } tolua_endmodule(L); } tolua_endmodule(L); }
/* 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_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_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_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_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; }
int tolua_sqlite_open(lua_State * L) { /* register user types */ tolua_usertype(L, LTYPE_DB); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_cclass(L, LTYPE_DB, LTYPE_DB, TOLUA_CAST "", NULL); tolua_beginmodule(L, LTYPE_DB); { tolua_function(L, TOLUA_CAST "open", &tolua_db_create); tolua_function(L, TOLUA_CAST "close", &tolua_db_close); tolua_function(L, TOLUA_CAST "update_factions", &tolua_db_update_factions); tolua_function(L, TOLUA_CAST "update_scores", &tolua_db_update_scores); tolua_function(L, TOLUA_CAST "execute", &tolua_db_execute); } tolua_endmodule(L); } tolua_endmodule(L); return 0; }
/* 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; }
/* 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 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; }
//打开baseobject库 int baseobject_open(lua_State* L) { tolua_open(L); baseobject_reg_types(L); //tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); { tolua_module(L,"Game",0); tolua_beginmodule(L,"Game"); { tolua_cclass(L,"BaseObject","CBaseObject","",collect_baseobject); tolua_beginmodule(L,"BaseObject"); { //==类型转换 tolua_function(L,"change_type", baseobject_change_type); //注册CBaseObject类的函数 tolua_variable(L,"id", baseobject_getid, NULL); tolua_variable(L,"type", baseobject_gettype, NULL); tolua_variable(L,"name", baseobject_getname, baseobject_setname); // tolua_function(L,"add_object", baseobject_add_object); // tolua_function(L,"remove_object", baseobject_remove_object); // tolua_function(L,"recursive_find_object", baseobject_recursive_find_object); } tolua_endmodule(L); } tolua_endmodule(L); } tolua_endmodule(L); return 1; }
TOLUA_API void tolua_open (lua_State* L) { int top = lua_gettop(L); lua_pushstring(L,"tolua_opened"); lua_rawget(L,LUA_REGISTRYINDEX); if (!lua_isboolean(L,-1)) { lua_pushstring(L,"tolua_opened"); lua_pushboolean(L,1); lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_super"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_gc"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); /* weak value table */ lua_pushstring(L,"tolua_ubox"); lua_newtable(L); lua_pushvalue(L,-1); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "v"); lua_rawset(L, -3); lua_setmetatable(L, -2); lua_rawset(L,LUA_REGISTRYINDEX); /* weak key table */ lua_pushstring(L,"tolua_peer"); lua_newtable(L); lua_pushvalue(L,-1); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "k"); lua_rawset(L, -3); lua_setmetatable(L, -2); lua_rawset(L,LUA_REGISTRYINDEX); tolua_newmetatable(L,"tolua_commonclass"); tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); tolua_module(L,"tolua",0); tolua_beginmodule(L,"tolua"); tolua_function(L,"type",tolua_bnd_type); tolua_function(L,"takeownership",tolua_bnd_takeownership); tolua_function(L,"releaseownership",tolua_bnd_releaseownership); tolua_function(L,"cast",tolua_bnd_cast); tolua_endmodule(L); tolua_endmodule(L); } lua_settop(L,top); }
/* 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; }
/* 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 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; }
TOLUA_API void tolua_open (lua_State* L) { int top = lua_gettop(L); lua_pushstring(L,"tolua_opened"); lua_rawget(L,LUA_REGISTRYINDEX); if (!lua_isboolean(L,-1)) { lua_pushstring(L,"tolua_opened"); lua_pushboolean(L,1); lua_rawset(L,LUA_REGISTRYINDEX); #ifndef LUA_VERSION_NUM /* only prior to lua 5.1 */ /* create peer object table */ lua_pushstring(L, "tolua_peers"); lua_newtable(L); /* make weak key metatable for peers indexed by userdata object */ lua_newtable(L); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "k"); lua_rawset(L, -3); /* stack: string peers mt */ lua_setmetatable(L, -2); /* stack: string peers */ lua_rawset(L,LUA_REGISTRYINDEX); #endif /* create object ptr -> udata mapping table */ lua_pushstring(L,"tolua_ubox"); lua_newtable(L); /* make weak value metatable for ubox table to allow userdata to be garbage-collected */ lua_newtable(L); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "v"); lua_rawset(L, -3); /* stack: string ubox mt */ lua_setmetatable(L, -2); /* stack: string ubox */ lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_super"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_gc"); lua_newtable(L);lua_rawset(L,LUA_REGISTRYINDEX); /* create gc_event closure */ lua_pushstring(L, "tolua_gc_event"); lua_pushstring(L, "tolua_gc"); lua_rawget(L, LUA_REGISTRYINDEX); lua_pushstring(L, "tolua_super"); lua_rawget(L, LUA_REGISTRYINDEX); lua_pushcclosure(L, class_gc_event, 2); lua_rawset(L, LUA_REGISTRYINDEX); tolua_newmetatable(L,"tolua_commonclass"); tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); tolua_module(L,"tolua",0); tolua_beginmodule(L,"tolua"); tolua_function(L,"type",tolua_bnd_type); tolua_function(L,"takeownership",tolua_bnd_takeownership); tolua_function(L,"releaseownership",tolua_bnd_releaseownership); tolua_function(L,"cast",tolua_bnd_cast); tolua_function(L,"inherit", tolua_bnd_inherit); #ifdef LUA_VERSION_NUM /* lua 5.1 */ tolua_function(L, "setpeer", tolua_bnd_setpeer); tolua_function(L, "getpeer", tolua_bnd_getpeer); #endif tolua_endmodule(L); tolua_endmodule(L); } lua_settop(L,top); }
void cManualBindings::BindNetwork(lua_State * tolua_S) { // Create the cNetwork API classes: tolua_usertype(tolua_S, "cNetwork"); tolua_usertype(tolua_S, "cServerHandle"); tolua_usertype(tolua_S, "cTCPLink"); tolua_usertype(tolua_S, "cUDPEndpoint"); tolua_usertype(tolua_S, "cUrlClient"); tolua_cclass(tolua_S, "cNetwork", "cNetwork", "", nullptr); tolua_cclass(tolua_S, "cServerHandle", "cServerHandle", "", tolua_collect_cServerHandle); tolua_cclass(tolua_S, "cTCPLink", "cTCPLink", "", nullptr); tolua_cclass(tolua_S, "cUDPEndpoint", "cUDPEndpoint", "", tolua_collect_cUDPEndpoint); tolua_cclass(tolua_S, "cUrlClient", "cUrlClient", "", nullptr); // Fill in the functions (alpha-sorted): tolua_beginmodule(tolua_S, "cNetwork"); tolua_function(tolua_S, "Connect", tolua_cNetwork_Connect); tolua_function(tolua_S, "CreateUDPEndpoint", tolua_cNetwork_CreateUDPEndpoint); tolua_function(tolua_S, "EnumLocalIPAddresses", tolua_cNetwork_EnumLocalIPAddresses); tolua_function(tolua_S, "HostnameToIP", tolua_cNetwork_HostnameToIP); tolua_function(tolua_S, "IPToHostname", tolua_cNetwork_IPToHostname); tolua_function(tolua_S, "Listen", tolua_cNetwork_Listen); tolua_endmodule(tolua_S); tolua_beginmodule(tolua_S, "cServerHandle"); tolua_function(tolua_S, "Close", tolua_cServerHandle_Close); tolua_function(tolua_S, "IsListening", tolua_cServerHandle_IsListening); tolua_endmodule(tolua_S); tolua_beginmodule(tolua_S, "cTCPLink"); tolua_function(tolua_S, "Close", tolua_cTCPLink_Close); tolua_function(tolua_S, "GetLocalIP", tolua_cTCPLink_GetLocalIP); tolua_function(tolua_S, "GetLocalPort", tolua_cTCPLink_GetLocalPort); tolua_function(tolua_S, "GetRemoteIP", tolua_cTCPLink_GetRemoteIP); tolua_function(tolua_S, "GetRemotePort", tolua_cTCPLink_GetRemotePort); tolua_function(tolua_S, "Send", tolua_cTCPLink_Send); tolua_function(tolua_S, "Shutdown", tolua_cTCPLink_Shutdown); tolua_function(tolua_S, "StartTLSClient", tolua_cTCPLink_StartTLSClient); tolua_function(tolua_S, "StartTLSServer", tolua_cTCPLink_StartTLSServer); tolua_endmodule(tolua_S); tolua_beginmodule(tolua_S, "cUDPEndpoint"); tolua_function(tolua_S, "Close", tolua_cUDPEndpoint_Close); tolua_function(tolua_S, "EnableBroadcasts", tolua_cUDPEndpoint_EnableBroadcasts); tolua_function(tolua_S, "GetPort", tolua_cUDPEndpoint_GetPort); tolua_function(tolua_S, "IsOpen", tolua_cUDPEndpoint_IsOpen); tolua_function(tolua_S, "Send", tolua_cUDPEndpoint_Send); tolua_endmodule(tolua_S); tolua_beginmodule(tolua_S, "cUrlClient"); tolua_function(tolua_S, "Delete", tolua_cUrlClient_Delete); tolua_function(tolua_S, "Get", tolua_cUrlClient_Get); tolua_function(tolua_S, "Post", tolua_cUrlClient_Post); tolua_function(tolua_S, "Put", tolua_cUrlClient_Put); tolua_function(tolua_S, "Request", tolua_cUrlClient_Request); tolua_endmodule(tolua_S); }
//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_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_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_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 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; }