public static SkillDataModel GetSkillData(int id) { SkillDataModel data = null; idSkillDict.TryGetValue(id, out data); return(data); }
private static void CreateSkill(int id, string name, string desc, params SkillLevelDataModel[] lvModels) { SkillDataModel data = new SkillDataModel(id, name, desc, lvModels); //保存到字典 idSkillDict.Add(id, data); }