From f30bdb83fa5a7c439648bac3bb12767d0c025f78 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 04 三月 2019 11:55:25 +0800
Subject: [PATCH] 3555 新版装备功能开发

---
 Lua/Gen/PlayerPropertyConfigWrap.cs |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/Lua/Gen/PlayerPropertyConfigWrap.cs b/Lua/Gen/PlayerPropertyConfigWrap.cs
index c5ff28c..097befe 100644
--- a/Lua/Gen/PlayerPropertyConfigWrap.cs
+++ b/Lua/Gen/PlayerPropertyConfigWrap.cs
@@ -38,13 +38,14 @@
 			Utils.EndObjectRegister(type, L, translator, null, null,
 			    null, null, null);
 
-		    Utils.BeginClassRegister(type, L, __CreateInstance, 7, 1, 0);
+		    Utils.BeginClassRegister(type, L, __CreateInstance, 8, 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, "GetPropByType", _m_GetPropByType_xlua_st_);
+            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPropertyDescription", _m_GetPropertyDescription_xlua_st_);
             
 			
             
@@ -319,6 +320,32 @@
             
         }
         
+        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_GetPropertyDescription_xlua_st_(RealStatePtr L)
+        {
+		    try {
+            
+            
+            
+                
+                {
+                    int _propertyId = LuaAPI.xlua_tointeger(L, 1);
+                    int _value = LuaAPI.xlua_tointeger(L, 2);
+                    
+                        string gen_ret = PlayerPropertyConfig.GetPropertyDescription( _propertyId, _value );
+                        LuaAPI.lua_pushstring(L, gen_ret);
+                    
+                    
+                    
+                    return 1;
+                }
+                
+            } catch(System.Exception gen_e) {
+                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+            }
+            
+        }
+        
         
         
         

--
Gitblit v1.8.0