少年修仙传客户端代码仓库
client_Hale
2018-09-25 f2cd8cf71a54e251e5f507c7d69c6f91f90e5074
Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
@@ -140,6 +140,21 @@
            return null;
        }
        public static ItemCompoundConfig GetItemCompoundByType(int firstType,int secondType, int thirdType)
        {
            if(allComposeModelDict.ContainsKey(firstType))
            {
                if(allComposeModelDict[firstType].ContainsKey(secondType))
                {
                    if(allComposeModelDict[firstType][secondType].ContainsKey(thirdType))
                    {
                        return allComposeModelDict[firstType][secondType][thirdType][0];
                    }
                }
            }
            return null;
        }
        public static bool TryGetTicketCompose(int _ticketId, out List<ItemCompoundConfig> list)
        {
            return ticketComposeDict.TryGetValue(_ticketId, out list);