From a554b1f8a7478fadd9ad867d5678f1ef70634fee Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 18 三月 2019 11:21:38 +0800
Subject: [PATCH] 6304 【前端】【2.0】日常活动修改
---
Lua/Gen/SnxxzUIDailyQuestModelWrap.cs | 68 ++++-----------------------------
1 files changed, 9 insertions(+), 59 deletions(-)
diff --git a/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs b/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs
index 68bf79f..81cdb67 100644
--- a/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs
+++ b/Lua/Gen/SnxxzUIDailyQuestModelWrap.cs
@@ -21,7 +21,7 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(Snxxz.UI.DailyQuestModel);
- Utils.BeginObjectRegister(type, L, translator, 0, 28, 8, 4);
+ Utils.BeginObjectRegister(type, L, translator, 0, 27, 7, 4);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
@@ -50,14 +50,12 @@
Utils.RegisterFunc(L, Utils.METHOD_IDX, "activeValueRewardGotEvent", _e_activeValueRewardGotEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "dailyQuestProgressUpdateEvent", _e_dailyQuestProgressUpdateEvent);
- Utils.RegisterFunc(L, Utils.METHOD_IDX, "totalActiveValueUpdateEvent", _e_totalActiveValueUpdateEvent);
- Utils.RegisterFunc(L, Utils.METHOD_IDX, "realmPointUpdateEvent", _e_realmPointUpdateEvent);
+ Utils.RegisterFunc(L, Utils.METHOD_IDX, "currentActiveValueUpdateEvent", _e_currentActiveValueUpdateEvent);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "dailyQuestTotalActiveValue", _g_get_dailyQuestTotalActiveValue);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentDailyQuest", _g_get_currentDailyQuest);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentRewardStageIndex", _g_get_currentRewardStageIndex);
- Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalActiveValue", _g_get_totalActiveValue);
- Utils.RegisterFunc(L, Utils.GETTER_IDX, "gotableRealmPoint", _g_get_gotableRealmPoint);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentActiveValue", _g_get_currentActiveValue);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "everyDayRedpoint", _g_get_everyDayRedpoint);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeLimitRedpoint", _g_get_timeLimitRedpoint);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialExchangeRedpoint", _g_get_trialExchangeRedpoint);
@@ -886,27 +884,13 @@
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _g_get_totalActiveValue(RealStatePtr L)
+ static int _g_get_currentActiveValue(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1);
- LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.totalActiveValue);
- } catch(System.Exception gen_e) {
- return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
- }
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _g_get_gotableRealmPoint(RealStatePtr L)
- {
- try {
- ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
-
- Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1);
- LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.gotableRealmPoint);
+ LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentActiveValue);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
@@ -1088,7 +1072,7 @@
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _e_totalActiveValueUpdateEvent(RealStatePtr L)
+ static int _e_currentActiveValueUpdateEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
@@ -1103,13 +1087,13 @@
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
- gen_to_be_invoked.totalActiveValueUpdateEvent += gen_delegate;
+ gen_to_be_invoked.currentActiveValueUpdateEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
- gen_to_be_invoked.totalActiveValueUpdateEvent -= gen_delegate;
+ gen_to_be_invoked.currentActiveValueUpdateEvent -= gen_delegate;
return 0;
}
@@ -1117,41 +1101,7 @@
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
- LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.DailyQuestModel.totalActiveValueUpdateEvent!");
- return 0;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _e_realmPointUpdateEvent(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.realmPointUpdateEvent += gen_delegate;
- return 0;
- }
-
-
- if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
- gen_to_be_invoked.realmPointUpdateEvent -= 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.realmPointUpdateEvent!");
+ LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.DailyQuestModel.currentActiveValueUpdateEvent!");
return 0;
}
--
Gitblit v1.8.0