From 513c4ab6b9af5733dfb350d7bf39cad6c0577b1c Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 13 八月 2018 20:17:32 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs b/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
index d217067..502a075 100644
--- a/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
@@ -6,7 +6,7 @@
     public partial class ItemCompoundConfig : ConfigBase, IConfigPostProcess
     {
         private static Dictionary<int, Dictionary<int, Dictionary<int, List<ItemCompoundConfig>>>> allComposeModelDict = new Dictionary<int, Dictionary<int, Dictionary<int, List<ItemCompoundConfig>>>>();
-
+        static Dictionary<int, List<ItemCompoundConfig>> ticketComposeDict = new Dictionary<int, List<ItemCompoundConfig>>();
         public void OnConfigParseCompleted()
         {
             if (!allComposeModelDict.ContainsKey(firstType))
@@ -43,6 +43,21 @@
                     }
                 }
 
+            }
+
+            if (firstType == (int)ComposeFuncType.Ticket)
+            {
+                var makeItemArray = ConfigParse.GetMultipleStr<int>(makeID);
+                for (int i = 0; i < makeItemArray.Length; i++)
+                {
+                    List<ItemCompoundConfig> list = null;
+                    if (!ticketComposeDict.TryGetValue(makeItemArray[i], out list))
+                    {
+                        list = new List<ItemCompoundConfig>();
+                        ticketComposeDict.Add(makeItemArray[i], list);
+                    }
+                    list.Add(this);
+                }
             }
         }
 
@@ -105,6 +120,11 @@
             return null;
         }
 
+        public static bool TryGetTicketCompose(int _ticketId, out List<ItemCompoundConfig> list)
+        {
+            return ticketComposeDict.TryGetValue(_ticketId, out list);
+        }
+
     }
 }
 

--
Gitblit v1.8.0