| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(BlastFurnaceModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 59, 36, 14); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 49, 28, 12); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAfterPlayerDataInitialize", _m_OnAfterPlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAlchemyData", _m_GetAlchemyData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAlchemySpecData", _m_GetAlchemySpecData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAddSpecMat", _m_RefreshAddSpecMat); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBlastFurnaceModel", _m_RefreshBlastFurnaceModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsReachMaxStoveLv", _m_IsReachMaxStoveLv); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshTreasureRefineModel", _m_RefreshTreasureRefineModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllTreasureRefineLv", _m_GetAllTreasureRefineLv); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TreasureIsFullLv", _m_TreasureIsFullLv); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMakerResult", _m_GetMakerResult); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortDruglist", _m_SetSortDruglist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlastFurnaceUpgradExp", _m_GetBlastFurnaceUpgradExp); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAlchemyMaterial", _m_GetAlchemyMaterial); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreviewMakeDruglist", _m_GetPreviewMakeDruglist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreviewSpecMakeDruglist", _m_GetPreviewSpecMakeDruglist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEffectIdByItemId", _m_GetEffectIdByItemId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreviewIdlist", _m_GetPreviewIdlist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpecPreviewIdlist", _m_GetSpecPreviewIdlist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAlchemySpecModellist", _m_SetAlchemySpecModellist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAlchemySpecModellist", _m_GetAlchemySpecModellist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCollectedTreasureList", _m_GetCollectedTreasureList); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTreasureRefineModel", _m_SetTreasureRefineModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNextTreasureRefineModel", _m_SetNextTreasureRefineModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTreasureSkillDict", _m_SetTreasureSkillDict); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTreasureAttrStr", _m_GetTreasureAttrStr); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFireSuccessRate", _m_GetFireSuccessRate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCurUseFire", _m_SetCurUseFire); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRefineStoveConditions", _m_GetRefineStoveConditions); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetProValueTypeStr", _m_GetProValueTypeStr); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendRefineTreasureQuest", _m_SendRefineTreasureQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMakerDrugQuest", _m_SendMakerDrugQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMakeDrugSuccessEvent", _m_SetMakeDrugSuccessEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDandrugRedPointlist", _m_SetDandrugRedPointlist); |
| | |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "blastFurnacePromoteUpdate", _e_blastFurnacePromoteUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshStoveModelEvent", _e_RefreshStoveModelEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshTreasureRefineEvent", _e_RefreshTreasureRefineEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshMakeItemAnswerAct", _e_RefreshMakeItemAnswerAct); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSuccessRateEvent", _e_RefreshSuccessRateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMakeDrugSuccess", _e_OnMakeDrugSuccess); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSelectRecycleAct", _e_RefreshSelectRecycleAct); |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxStoveLv", _g_get_MaxStoveLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyModellist", _g_get_alchemyModellist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpToPrescripe", _g_get_jumpToPrescripe); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyDataDict", _g_get_alchemyDataDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemySpecDataDict", _g_get_alchemySpecDataDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isMakeDan", _g_get_isMakeDan); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFirstGet", _g_get_isFirstGet); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "StoveLV", _g_get_StoveLV); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "StoveExp", _g_get_StoveExp); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "makerItemID", _g_get_makerItemID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "StoveIsUpGrade", _g_get_StoveIsUpGrade); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureData", _g_get_treasureData); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialId", _g_get_materialId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialNum", _g_get_materialNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "attrIDs", _g_get_attrIDs); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "attrValues", _g_get_attrValues); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "nextAttrIDs", _g_get_nextAttrIDs); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "nextAttrValues", _g_get_nextAttrValues); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "nextRefineMaterialID", _g_get_nextRefineMaterialID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "nextRefineMaterialNum", _g_get_nextRefineMaterialNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fireId", _g_get_fireId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fireIds", _g_get_fireIds); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "openBlastFurnaceLv", _g_get_openBlastFurnaceLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "danDrugRedPointlist", _g_get_danDrugRedPointlist); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "funcTitle", _g_get_funcTitle); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RefreshAddSpecMatEvent", _g_get_RefreshAddSpecMatEvent); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "addExp", _g_get_addExp); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureRefineDict", _g_get_treasureRefineDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortDruglist", _g_get_sortDruglist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureSkillDict", _g_get_treasureSkillDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "blastRedpoint", _g_get_blastRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lingDanRedpoint", _g_get_lingDanRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "recycleStoreRedpoint", _g_get_recycleStoreRedpoint); |
| | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "funcTitle", _s_set_funcTitle); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "RefreshAddSpecMatEvent", _s_set_RefreshAddSpecMatEvent); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "addExp", _s_set_addExp); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "treasureRefineDict", _s_set_treasureRefineDict); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortDruglist", _s_set_sortDruglist); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "treasureSkillDict", _s_set_treasureSkillDict); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "blastRedpoint", _s_set_blastRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "lingDanRedpoint", _s_set_lingDanRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "recycleStoreRedpoint", _s_set_recycleStoreRedpoint); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAlchemyData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | BlastFurnaceModel.AlchemyData gen_ret = gen_to_be_invoked.GetAlchemyData( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAlchemySpecData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | BlastFurnaceModel.AlchemySpecData gen_ret = gen_to_be_invoked.GetAlchemySpecData( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RefreshAddSpecMat(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsReachMaxStoveLv( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RefreshTreasureRefineModel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HA3BE_tagMCMagicWeaponMsg _data = (HA3BE_tagMCMagicWeaponMsg)translator.GetObject(L, 2, typeof(HA3BE_tagMCMagicWeaponMsg)); |
| | | |
| | | gen_to_be_invoked.RefreshTreasureRefineModel( _data ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAllTreasureRefineLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetAllTreasureRefineLv( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TreasureIsFullLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _treasureId = LuaAPI.xlua_tointeger(L, 2); |
| | | int _lv = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TreasureIsFullLv( _treasureId, _lv ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetEffectIdByItemId(RealStatePtr L) |
| | | static int _m_GetPreviewIdlist(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | TableConfig.AlchemyConfig _alchemyConfig = (TableConfig.AlchemyConfig)translator.GetObject(L, 2, typeof(TableConfig.AlchemyConfig)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetEffectIdByItemId( _itemId ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetPreviewIdlist( _alchemyConfig ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSpecPreviewIdlist(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | TableConfig.AlchemySpecConfig _specConfig = (TableConfig.AlchemySpecConfig)translator.GetObject(L, 2, typeof(TableConfig.AlchemySpecConfig)); |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetSpecPreviewIdlist( _specConfig ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetCollectedTreasureList(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetCollectedTreasureList( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetTreasureRefineModel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | TableConfig.TreasureRefineConfig _model = (TableConfig.TreasureRefineConfig)translator.GetObject(L, 2, typeof(TableConfig.TreasureRefineConfig)); |
| | | |
| | | gen_to_be_invoked.SetTreasureRefineModel( _model ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetNextTreasureRefineModel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | TableConfig.TreasureRefineConfig _model = (TableConfig.TreasureRefineConfig)translator.GetObject(L, 2, typeof(TableConfig.TreasureRefineConfig)); |
| | | |
| | | gen_to_be_invoked.SetNextTreasureRefineModel( _model ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetTreasureSkillDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _treasureId = LuaAPI.xlua_tointeger(L, 2); |
| | | int _lv = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.SetTreasureSkillDict( _treasureId, _lv ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetTreasureAttrStr(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _proID = LuaAPI.xlua_tointeger(L, 2); |
| | | int _value = LuaAPI.xlua_tointeger(L, 3); |
| | | bool _showName = LuaAPI.lua_toboolean(L, 4); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetTreasureAttrStr( _proID, _value, _showName ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetFireSuccessRate(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _proID = LuaAPI.xlua_tointeger(L, 2); |
| | | int _value = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetFireSuccessRate( _proID, _value ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetCurUseFire(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _fireId = LuaAPI.xlua_tointeger(L, 2); |
| | | float _value = (float)LuaAPI.lua_tonumber(L, 3); |
| | | |
| | | gen_to_be_invoked.SetCurUseFire( _fireId, _value ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetRefineStoveConditions(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendRefineTreasureQuest(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | uint _treasureId = LuaAPI.xlua_touint(L, 2); |
| | | uint _materId = LuaAPI.xlua_touint(L, 3); |
| | | |
| | | gen_to_be_invoked.SendRefineTreasureQuest( _treasureId, _materId ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_alchemyDataDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.alchemyDataDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_alchemySpecDataDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.alchemySpecDataDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isMakeDan(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_treasureData(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.treasureData); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_materialId(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.materialNum); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_attrIDs(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.attrIDs); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_attrValues(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.attrValues); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_nextAttrIDs(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.nextAttrIDs); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_nextAttrValues(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.nextAttrValues); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_nextRefineMaterialID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.nextRefineMaterialID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_nextRefineMaterialNum(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.nextRefineMaterialNum); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fireId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fireId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_treasureRefineDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.treasureRefineDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_sortDruglist(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.sortDruglist); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_treasureSkillDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.treasureSkillDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_treasureRefineDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.treasureRefineDict = (System.Collections.Generic.Dictionary<uint, byte>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<uint, byte>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_sortDruglist(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.sortDruglist = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_treasureSkillDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.treasureSkillDict = (System.Collections.Generic.Dictionary<int, TreasureSkillData>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, TreasureSkillData>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_RefreshTreasureRefineEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.RefreshTreasureRefineEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.RefreshTreasureRefineEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to BlastFurnaceModel.RefreshTreasureRefineEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_RefreshMakeItemAnswerAct(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to BlastFurnaceModel.RefreshMakeItemAnswerAct!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_RefreshSuccessRateEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<float> gen_delegate = translator.GetDelegate<System.Action<float>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<float>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.RefreshSuccessRateEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.RefreshSuccessRateEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to BlastFurnaceModel.RefreshSuccessRateEvent!"); |
| | | return 0; |
| | | } |
| | | |