From 26eab07e8c4d0d81a4e5aeb142939e4b757ab3ae Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 23 十月 2018 20:03:19 +0800
Subject: [PATCH] 3335 更新lua库

---
 Assets/XLua/Gen/LuaGameNetPackBaseWrap.cs |   68 ++++++++++++++++++++++++++++++++-
 1 files changed, 65 insertions(+), 3 deletions(-)

diff --git a/Assets/XLua/Gen/LuaGameNetPackBaseWrap.cs b/Assets/XLua/Gen/LuaGameNetPackBaseWrap.cs
index 3b981c0..dbc92c4 100644
--- a/Assets/XLua/Gen/LuaGameNetPackBaseWrap.cs
+++ b/Assets/XLua/Gen/LuaGameNetPackBaseWrap.cs
@@ -21,7 +21,7 @@
         {
 			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
 			System.Type type = typeof(LuaGameNetPackBase);
-			Utils.BeginObjectRegister(type, L, translator, 0, 14, 1, 1);
+			Utils.BeginObjectRegister(type, L, translator, 0, 15, 2, 2);
 			
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegistWriteToBytes", _m_RegistWriteToBytes);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteShortBytes", _m_WriteShortBytes);
@@ -30,6 +30,7 @@
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteStringBytes", _m_WriteStringBytes);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteShortsWriteLenBytes", _m_WriteShortsWriteLenBytes);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteIntsWriteLenBytes", _m_WriteIntsWriteLenBytes);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteUintsWriteLenBytes", _m_WriteUintsWriteLenBytes);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransUintBytes", _m_TransUintBytes);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransIntBytes", _m_TransIntBytes);
@@ -40,8 +41,10 @@
 			
 			
 			Utils.RegisterFunc(L, Utils.GETTER_IDX, "cmd", _g_get_cmd);
+            Utils.RegisterFunc(L, Utils.GETTER_IDX, "combineCmd", _g_get_combineCmd);
             
 			Utils.RegisterFunc(L, Utils.SETTER_IDX, "cmd", _s_set_cmd);
+            Utils.RegisterFunc(L, Utils.SETTER_IDX, "combineCmd", _s_set_combineCmd);
             
 			
 			Utils.EndObjectRegister(type, L, translator, null, null,
@@ -217,8 +220,9 @@
                 {
                     string _value = LuaAPI.lua_tostring(L, 2);
                     LuaGameNetSystem.NetDataType _type;translator.Get(L, 3, out _type);
+                    int _length = LuaAPI.xlua_tointeger(L, 4);
                     
-                    gen_to_be_invoked.WriteStringBytes( _value, _type );
+                    gen_to_be_invoked.WriteStringBytes( _value, _type, _length );
                     
                     
                     
@@ -273,10 +277,39 @@
             
                 
                 {
-                    uint[] _values = (uint[])translator.GetObject(L, 2, typeof(uint[]));
+                    int[] _values = (int[])translator.GetObject(L, 2, typeof(int[]));
                     LuaGameNetSystem.NetDataType _type;translator.Get(L, 3, out _type);
                     
                     gen_to_be_invoked.WriteIntsWriteLenBytes( _values, _type );
+                    
+                    
+                    
+                    return 0;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_WriteUintsWriteLenBytes(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                LuaGameNetPackBase gen_to_be_invoked = (LuaGameNetPackBase)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    uint[] _values = (uint[])translator.GetObject(L, 2, typeof(uint[]));
+                    LuaGameNetSystem.NetDataType _type;translator.Get(L, 3, out _type);
+                    
+                    gen_to_be_invoked.WriteUintsWriteLenBytes( _values, _type );
                     
                     
                     
@@ -515,6 +548,20 @@
             return 1;
         }
         
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _g_get_combineCmd(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                LuaGameNetPackBase gen_to_be_invoked = (LuaGameNetPackBase)translator.FastGetCSObj(L, 1);
+                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.combineCmd);
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 1;
+        }
+        
         
         
         [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
@@ -532,6 +579,21 @@
             return 0;
         }
         
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _s_set_combineCmd(RealStatePtr L)
+        {
+		    try {
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+			
+                LuaGameNetPackBase gen_to_be_invoked = (LuaGameNetPackBase)translator.FastGetCSObj(L, 1);
+                gen_to_be_invoked.combineCmd = (ushort)LuaAPI.xlua_tointeger(L, 2);
+            
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            return 0;
+        }
+        
 		
 		
 		

--
Gitblit v1.8.0