| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(BlastFurnaceModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 60, 37, 14); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 59, 36, 14); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | 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, "GetBlastFurnaceRecipe", _m_GetBlastFurnaceRecipe); |
| | | 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.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, "canUseFireDandrugIDs", _g_get_canUseFireDandrugIDs); |
| | | 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); |
| | |
| | | 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_GetBlastFurnaceRecipe(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.GetBlastFurnaceRecipe( ); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | 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); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_canUseFireDandrugIDs(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.canUseFireDandrugIDs); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |