public SkillPassiveData this[int id] { get { SkillPassiveData data = null; Dict.TryGetValue(id, out data); return(data); } }
public void initData(string content) { Dict.Clear(); string[] array = content.Split(new string[] { StaticDataConstant.WIN_ENTER }, System.StringSplitOptions.RemoveEmptyEntries); int length = array.Length; for (int i = 4; i < length; i++) { SkillPassiveData data = new SkillPassiveData(array[i]); Dict[data.id] = data; } }