From 4dd153c051d1df64f2eca3d5011c5640b248d4a5 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 21 十一月 2018 16:13:04 +0800
Subject: [PATCH] 3335 【1.3】提交lua生成代码

---
 Lua/Gen/SnxxzUIDemonJarModelWrap.cs |  218 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 217 insertions(+), 1 deletions(-)

diff --git a/Lua/Gen/SnxxzUIDemonJarModelWrap.cs b/Lua/Gen/SnxxzUIDemonJarModelWrap.cs
index b6322e1..f155edf 100644
--- a/Lua/Gen/SnxxzUIDemonJarModelWrap.cs
+++ b/Lua/Gen/SnxxzUIDemonJarModelWrap.cs
@@ -21,7 +21,7 @@
         {
 			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
 			System.Type type = typeof(Snxxz.UI.DemonJarModel);
-			Utils.BeginObjectRegister(type, L, translator, 0, 19, 6, 6);
+			Utils.BeginObjectRegister(type, L, translator, 0, 23, 9, 9);
 			
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
@@ -38,24 +38,34 @@
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSurplusTimes", _m_GetSurplusTimes);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPersonalBoss", _m_IsPersonalBoss);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFakeBossKillRecords", _m_GetFakeBossKillRecords);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAutoChallengeLogs", _m_UpdateAutoChallengeLogs);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddAutoChallengeLog", _m_AddAutoChallengeLog);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAutoChallengeLogs", _m_GetAutoChallengeLogs);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateDemonJarSoul", _m_UpdateDemonJarSoul);
 			
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossSelectedEvent", _e_bossSelectedEvent);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "participantChangeEvent", _e_participantChangeEvent);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "doubleAwardChangeEvent", _e_doubleAwardChangeEvent);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "autoChallengeChangeEvent", _e_autoChallengeChangeEvent);
 			
 			Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDoubleAward", _g_get_isDoubleAward);
+            Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoChallenge", _g_get_autoChallenge);
+            Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoChallengeBoss", _g_get_autoChallengeBoss);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "doubleToKillLowerBossHint", _g_get_doubleToKillLowerBossHint);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedBoss", _g_get_selectedBoss);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "demonJarSoulIncreaseDelta", _g_get_demonJarSoulIncreaseDelta);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint);
+            Utils.RegisterFunc(L, Utils.GETTER_IDX, "oldDouble", _g_get_oldDouble);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "lockSelectedBoss", _g_get_lockSelectedBoss);
             
 			Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDoubleAward", _s_set_isDoubleAward);
+            Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoChallenge", _s_set_autoChallenge);
+            Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoChallengeBoss", _s_set_autoChallengeBoss);
             Utils.RegisterFunc(L, Utils.SETTER_IDX, "doubleToKillLowerBossHint", _s_set_doubleToKillLowerBossHint);
             Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedBoss", _s_set_selectedBoss);
             Utils.RegisterFunc(L, Utils.SETTER_IDX, "demonJarSoulIncreaseDelta", _s_set_demonJarSoulIncreaseDelta);
             Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpoint", _s_set_redpoint);
+            Utils.RegisterFunc(L, Utils.SETTER_IDX, "oldDouble", _s_set_oldDouble);
             Utils.RegisterFunc(L, Utils.SETTER_IDX, "lockSelectedBoss", _s_set_lockSelectedBoss);
             
 			
@@ -529,6 +539,91 @@
         }
         
         [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_UpdateAutoChallengeLogs(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    
+                    gen_to_be_invoked.UpdateAutoChallengeLogs(  );
+                    
+                    
+                    
+                    return 0;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_AddAutoChallengeLog(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    int _bossId = LuaAPI.xlua_tointeger(L, 2);
+                    bool _isDouble = LuaAPI.lua_toboolean(L, 3);
+                    int _rank = LuaAPI.xlua_tointeger(L, 4);
+                    
+                    gen_to_be_invoked.AddAutoChallengeLog( _bossId, _isDouble, _rank );
+                    
+                    
+                    
+                    return 0;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_GetAutoChallengeLogs(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    
+                        System.Collections.Generic.List<Snxxz.UI.DemonJarModel.AutoChallengeLog> gen_ret = gen_to_be_invoked.GetAutoChallengeLogs(  );
+                        translator.Push(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_UpdateDemonJarSoul(RealStatePtr L)
         {
 		    try {
@@ -566,6 +661,34 @@
 			
                 Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
                 LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDoubleAward);
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 1;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _g_get_autoChallenge(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoChallenge);
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 1;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _g_get_autoChallengeBoss(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.autoChallengeBoss);
             } catch(System.Exception gen_e) {
                 return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
             }
@@ -629,6 +752,20 @@
         }
         
         [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _g_get_oldDouble(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.oldDouble);
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 1;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
         static int _g_get_lockSelectedBoss(RealStatePtr L)
         {
 		    try {
@@ -652,6 +789,36 @@
 			
                 Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
                 gen_to_be_invoked.isDoubleAward = LuaAPI.lua_toboolean(L, 2);
+            
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 0;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _s_set_autoChallenge(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+                gen_to_be_invoked.autoChallenge = LuaAPI.lua_toboolean(L, 2);
+            
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 0;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _s_set_autoChallengeBoss(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+                gen_to_be_invoked.autoChallengeBoss = LuaAPI.xlua_tointeger(L, 2);
             
             } catch(System.Exception gen_e) {
                 return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
@@ -712,6 +879,21 @@
 			
                 Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
                 gen_to_be_invoked.redpoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint));
+            
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 0;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _s_set_oldDouble(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)translator.FastGetCSObj(L, 1);
+                gen_to_be_invoked.oldDouble = LuaAPI.lua_toboolean(L, 2);
             
             } catch(System.Exception gen_e) {
                 return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
@@ -838,6 +1020,40 @@
             return 0;
         }
         
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _e_autoChallengeChangeEvent(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			    int gen_param_count = LuaAPI.lua_gettop(L);
+			Snxxz.UI.DemonJarModel gen_to_be_invoked = (Snxxz.UI.DemonJarModel)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.autoChallengeChangeEvent += gen_delegate;
+						return 0;
+					} 
+					
+					
+					if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
+						gen_to_be_invoked.autoChallengeChangeEvent -= 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.DemonJarModel.autoChallengeChangeEvent!");
+            return 0;
+        }
+        
 		
 		
     }

--
Gitblit v1.8.0