| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.DailyQuestModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 34, 10, 6); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 10, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMapInitOk", _m_OnMapInitOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnNewFuncOpen", _m_OnNewFuncOpen); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNewDailyQuest", _m_IsNewDailyQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHasShowDailyQuest", _m_RemoveHasShowDailyQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDailyQuests", _m_GetDailyQuests); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLivenessRewardDatas", _m_GetLivenessRewardDatas); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDailyQuest", _m_TryGetDailyQuest); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetOpenTime", _m_TryGetOpenTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuestByWeekTimeNode", _m_GetQuestByWeekTimeNode); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuestByWeekTime", _m_GetQuestByWeekTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateHazyRegion", _m_UpdateHazyRegion); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedpoints", _m_UpdateRedpoints); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuestState", _m_GetQuestState); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoDailyQuest", _m_GotoDailyQuest); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "currentActiveValueUpdateEvent", _e_currentActiveValueUpdateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "usableActivePointUpdateEvent", _e_usableActivePointUpdateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "categoryChangeEvent", _e_categoryChangeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "newDailyQuestOpenEvent", _e_newDailyQuestOpenEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dailyQuestTotalActiveValue", _g_get_dailyQuestTotalActiveValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentDailyQuest", _g_get_currentDailyQuest); |
| | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnMapInitOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnNewFuncOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.OnNewFuncOpen( _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsNewDailyQuest(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsNewDailyQuest( _id ); |
| | | 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_RemoveHasShowDailyQuest(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RemoveHasShowDailyQuest( ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateHazyRegion(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | { |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateRedpoints(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_newDailyQuestOpenEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)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.newDailyQuestOpenEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.newDailyQuestOpenEvent -= 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 Snxxz.UI.DailyQuestModel.newDailyQuestOpenEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |