From 2c6123a7605913bdbf3984b77fbe04446eb400c8 Mon Sep 17 00:00:00 2001
From: client_Lhy <995049470@qq.com>
Date: 星期四, 27 六月 2019 11:01:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Lua/Gen/SnxxzUIDailyQuestModelWrap.cs | 143 +++++++++++++++++++++++++++++++++++++++++------
1 files changed, 123 insertions(+), 20 deletions(-)
diff --git a/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs b/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs
index d49b94f..c42bbd1 100644
--- a/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs
+++ b/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs
@@ -21,13 +21,16 @@
{
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);
@@ -47,7 +50,6 @@
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);
@@ -58,6 +60,7 @@
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);
@@ -245,6 +248,90 @@
{
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( );
@@ -842,24 +929,6 @@
}
[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 {
@@ -1405,6 +1474,40 @@
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;
+ }
+
}
--
Gitblit v1.8.0