예제 #1
0
        public static SkillDataModel GetSkillData(int id)
        {
            SkillDataModel data = null;

            idSkillDict.TryGetValue(id, out data);
            return(data);
        }
예제 #2
0
        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);
        }