From 096bc211e02f3e010ada28ad5b67a687307382b7 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期三, 21 十一月 2018 16:54:19 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Lua/Gen/StoreModelWrap.cs |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/Lua/Gen/StoreModelWrap.cs b/Lua/Gen/StoreModelWrap.cs
index c05e9ed..b3efaf3 100644
--- a/Lua/Gen/StoreModelWrap.cs
+++ b/Lua/Gen/StoreModelWrap.cs
@@ -21,7 +21,7 @@
         {
 			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
 			System.Type type = typeof(StoreModel);
-			Utils.BeginObjectRegister(type, L, translator, 0, 58, 27, 10);
+			Utils.BeginObjectRegister(type, L, translator, 0, 59, 27, 10);
 			
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
@@ -45,6 +45,7 @@
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBuyShopLimitModel", _m_RefreshBuyShopLimitModel);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBuyShopLimit", _m_GetBuyShopLimit);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRuneSource", _m_SetRuneSource);
+			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShopItemlistByIndex", _m_GetShopItemlistByIndex);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetShopItemInfo", _m_TryGetShopItemInfo);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshTCBPlayerData", _m_RefreshTCBPlayerData);
 			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTCBPlayerData", _m_GetTCBPlayerData);
@@ -822,6 +823,35 @@
         }
         
         [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+        static int _m_GetShopItemlistByIndex(RealStatePtr L)
+        {
+		    try {
+            
+                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+            
+            
+                StoreModel gen_to_be_invoked = (StoreModel)translator.FastGetCSObj(L, 1);
+            
+            
+                
+                {
+                    TableConfig.StoreConfig _storeConfig = (TableConfig.StoreConfig)translator.GetObject(L, 2, typeof(TableConfig.StoreConfig));
+                    
+                        System.Collections.Generic.List<ShopItemInfo> gen_ret = gen_to_be_invoked.GetShopItemlistByIndex( _storeConfig );
+                        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_TryGetShopItemInfo(RealStatePtr L)
         {
 		    try {

--
Gitblit v1.8.0