public override bool init() { _skillModels = new Dictionary <int, SkillModel> (); SolaEngine engine = SolaEngine.getInstance(); List <SkillConfig> skillCfgs = (List <SkillConfig>)engine.getCfg(SkillConfigData.NAME); for (int i = 0; i < skillCfgs.Count; i++) { SkillConfig skillCfg = skillCfgs[i]; SkillModel skillModel = new SkillModel(); skillModel.setCfg(skillCfg); int skillId = skillModel.getId(); _skillModels.Add(skillId, skillModel); } return(true); }