From f025f98a9f992a6ba171fbdf1bab2defa5a4f989 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 11 三月 2019 15:23:19 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Lua/Gen/EquipPlaceMapConfigWrap.cs |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/Lua/Gen/EquipPlaceMapConfigWrap.cs b/Lua/Gen/EquipPlaceMapConfigWrap.cs
index 960e2b2..6aff4e2 100644
--- a/Lua/Gen/EquipPlaceMapConfigWrap.cs
+++ b/Lua/Gen/EquipPlaceMapConfigWrap.cs
@@ -21,8 +21,9 @@
         {
 			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
 			System.Type type = typeof(EquipPlaceMapConfig);
-			Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 0);
+			Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 0);
 			
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnConfigParseCompleted", _m_OnConfigParseCompleted);
 			
 			
 			Utils.RegisterFunc(L, Utils.GETTER_IDX, "PackIndex", _g_get_PackIndex);
@@ -34,12 +35,13 @@
 			Utils.EndObjectRegister(type, L, translator, null, null,
 			    null, null, null);
 
-		    Utils.BeginClassRegister(type, L, __CreateInstance, 6, 1, 0);
+		    Utils.BeginClassRegister(type, L, __CreateInstance, 7, 1, 0);
 			Utils.RegisterFunc(L, Utils.CLS_IDX, "Get", _m_Get_xlua_st_);
             Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeys", _m_GetKeys_xlua_st_);
             Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValues", _m_GetValues_xlua_st_);
             Utils.RegisterFunc(L, Utils.CLS_IDX, "Has", _m_Has_xlua_st_);
             Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_);
+            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetServerPlace", _m_GetServerPlace_xlua_st_);
             
 			
             
@@ -260,6 +262,59 @@
             
         }
         
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_OnConfigParseCompleted(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                EquipPlaceMapConfig gen_to_be_invoked = (EquipPlaceMapConfig)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    
+                    gen_to_be_invoked.OnConfigParseCompleted(  );
+                    
+                    
+                    
+                    return 0;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_GetServerPlace_xlua_st_(RealStatePtr L)
+        {
+		    try {
+            
+            
+            
+                
+                {
+                    int _level = LuaAPI.xlua_tointeger(L, 1);
+                    int _equipPlace = LuaAPI.xlua_tointeger(L, 2);
+                    
+                        int gen_ret = EquipPlaceMapConfig.GetServerPlace( _level, _equipPlace );
+                        LuaAPI.xlua_pushinteger(L, gen_ret);
+                    
+                    
+                    
+                    return 1;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
         
         
         

--
Gitblit v1.8.0