| using System.Collections.Generic; | 
| using UnityEngine; | 
|   | 
| public partial class HeroQualityLVConfig : ConfigBase<int, HeroQualityLVConfig> | 
| { | 
|     public static Dictionary<int, Dictionary<int, HeroQualityLVConfig>> configDics = new Dictionary<int, Dictionary<int, HeroQualityLVConfig>>(); | 
|   | 
|     protected override void OnConfigParseCompleted() | 
|     { | 
|   | 
|         Dictionary<int, HeroQualityLVConfig> tempDic = null; | 
|         if (!configDics.TryGetValue(Quality, out tempDic)) | 
|         { | 
|             tempDic = new Dictionary<int, HeroQualityLVConfig>(); | 
|             configDics.Add(Quality, tempDic); | 
|         } | 
|   | 
|         tempDic.Add(HeroLV, this); | 
|     } | 
|   | 
|     public static HeroQualityLVConfig GetQualityLVConfig(int quality, int lv) | 
|     { | 
|         Dictionary<int, HeroQualityLVConfig> tempDic = null; | 
|         if (!configDics.TryGetValue(quality, out tempDic)) | 
|         { | 
|             return null; | 
|         } | 
|         HeroQualityLVConfig config = null; | 
|         tempDic.TryGetValue(lv, out config); | 
|         return config; | 
|     } | 
|   | 
| } |