From 3d101da093e4d3db02a005beec51d8a9aa0e6725 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 20 十一月 2018 10:42:39 +0800
Subject: [PATCH] 3335 【1.3】生成model对应xlua代码

---
 Lua/Gen/SnxxzUIMultipleRealmPointModelWrap.cs |   81 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 80 insertions(+), 1 deletions(-)

diff --git a/Lua/Gen/SnxxzUIMultipleRealmPointModelWrap.cs b/Lua/Gen/SnxxzUIMultipleRealmPointModelWrap.cs
index c12e7e3..63688a1 100644
--- a/Lua/Gen/SnxxzUIMultipleRealmPointModelWrap.cs
+++ b/Lua/Gen/SnxxzUIMultipleRealmPointModelWrap.cs
@@ -21,20 +21,23 @@
         {
 			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
 			System.Type type = typeof(Snxxz.UI.MultipleRealmPointModel);
-			Utils.BeginObjectRegister(type, L, translator, 0, 7, 5, 2);
+			Utils.BeginObjectRegister(type, L, translator, 0, 9, 6, 2);
 			
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAfterPlayerDataInitialize", _m_OnAfterPlayerDataInitialize);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAlreadyRealmPoint", _m_SetAlreadyRealmPoint);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckShowRed", _m_CheckShowRed);
 			
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRealmPointEvent", _e_UpdateRealmPointEvent);
 			
 			Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance);
+            Utils.RegisterFunc(L, Utils.GETTER_IDX, "alreadyRealmPoint", _g_get_alreadyRealmPoint);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "multipleRed", _g_get_multipleRed);
             Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalRecord_Key", _g_get_LocalRecord_Key);
             
@@ -221,6 +224,34 @@
         }
         
         [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_SetAlreadyRealmPoint(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                Snxxz.UI.MultipleRealmPointModel gen_to_be_invoked = (Snxxz.UI.MultipleRealmPointModel)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    int _point = LuaAPI.xlua_tointeger(L, 2);
+                    
+                    gen_to_be_invoked.SetAlreadyRealmPoint( _point );
+                    
+                    
+                    
+                    return 0;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
         static int _m_CheckShowRed(RealStatePtr L)
         {
 		    try {
@@ -300,6 +331,20 @@
 			
                 Snxxz.UI.MultipleRealmPointModel gen_to_be_invoked = (Snxxz.UI.MultipleRealmPointModel)translator.FastGetCSObj(L, 1);
                 LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAdvance);
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 1;
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _g_get_alreadyRealmPoint(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                Snxxz.UI.MultipleRealmPointModel gen_to_be_invoked = (Snxxz.UI.MultipleRealmPointModel)translator.FastGetCSObj(L, 1);
+                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.alreadyRealmPoint);
             } catch(System.Exception gen_e) {
                 return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
             }
@@ -402,6 +447,40 @@
             return 0;
         }
         
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _e_UpdateRealmPointEvent(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			    int gen_param_count = LuaAPI.lua_gettop(L);
+			Snxxz.UI.MultipleRealmPointModel gen_to_be_invoked = (Snxxz.UI.MultipleRealmPointModel)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.UpdateRealmPointEvent += gen_delegate;
+						return 0;
+					} 
+					
+					
+					if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
+						gen_to_be_invoked.UpdateRealmPointEvent -= 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.MultipleRealmPointModel.UpdateRealmPointEvent!");
+            return 0;
+        }
+        
 		
 		
     }

--
Gitblit v1.8.0