少年修仙传客户端代码仓库
client_Hale
2018-08-13 513c4ab6b9af5733dfb350d7bf39cad6c0577b1c
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);
        }
    }
}