| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(BlastFurnaceModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 48, 26, 12); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 48, 25, 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, "RefreshSelectRecycleAct", _e_RefreshSelectRecycleAct); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "sTreasureModel", _g_get_sTreasureModel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "extraMats", _g_get_extraMats); |
| | | 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); |
| | |
| | | |
| | | BlastFurnaceModel gen_to_be_invoked = (BlastFurnaceModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.sTreasureModel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_extraMats(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.extraMats); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SnxxzGame); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 11, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 12, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUpdateAction", _m_AddUpdateAction); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveUpdateAction", _m_RemoveUpdateAction); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartTimePause", _m_StartTimePause); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "MovingCamera", _m_MovingCamera); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetCamera", _m_ResetCamera); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopAllCameraCo", _m_StopAllCameraCo); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_StopAllCameraCo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SnxxzGame gen_to_be_invoked = (SnxxzGame)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.StopAllCameraCo( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(WeekPartyPointConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 0); |
| | | |
| | | |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ImageType1", _g_get_ImageType1); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ImageType2", _g_get_ImageType2); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Zoom", _g_get_Zoom); |
| | | |
| | | |
| | | |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Zoom(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | WeekPartyPointConfig gen_to_be_invoked = (WeekPartyPointConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Zoom); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | private FuncConfigConfig _blastFurnaceExpModel;
|
| | | private ItemConfig chinItemModel;
|
| | | private Dictionary<int, int> _blastFurnaceExpDict;
|
| | | public int[] extraMats { get; private set; }
|
| | |
|
| | | public int MaxStoveLv { get; private set; }
|
| | | public List<AlchemyConfig> alchemyModellist { get; private set; }
|
| | |
| | | ParseAlchemyConfig();
|
| | | ParseAlchemySpecConfig();
|
| | | _blastFurnaceExpDict = new Dictionary<int, int>();
|
| | | extraMats = null;
|
| | | _upTreasureRateModel = FuncConfigConfig.Get("TreasureUpRateItem");
|
| | | if (_upTreasureRateModel != null)
|
| | | {
|
| | | extraMats = ConfigParse.GetMultipleStr<int>(_upTreasureRateModel.Numerical2);
|
| | | }
|
| | | List<RefineStoveConfig> stovelist = RefineStoveConfig.GetValues();
|
| | | MaxStoveLv = 0;
|
| | | if (stovelist != null)
|
| | |
| | | {
|
| | | public static int greatMasterStartLV { get; private set; }
|
| | | public static int playerMaxLevel { get; private set; }
|
| | | public static float potentialUpSuccessRecommend { get; private set; }
|
| | | public static int[] kylinHomeCollectItems;
|
| | | public static List<int> dailyQuestOpenTime;
|
| | | public static int flyBootItemId { get; private set; }
|
| | |
| | | CompareEquipPlaces = GetIntArray("EquipUpType");
|
| | | greatMasterStartLV = GetInt("GreatMasterStartLV");
|
| | | playerMaxLevel = GetInt("PlayerMaxLV");
|
| | | potentialUpSuccessRecommend = GetFloat("SPSkillType", 2) * 0.0001f;
|
| | | kylinHomeCollectItems = GetIntArray("KirinNpc", 2);
|
| | | dailyQuestOpenTime = GetTimeArray("ActionTime", 1);
|
| | | flyBootItemId = GetInt("TransportPay");
|