public SkillBase CreateSkill(uint skillId) { SkillLoader.Data skillLoader = ConfigManager.Instance.GetData <SkillLoader, SkillLoader.Data>(skillId); //后面继续完善技能配置系统 SkillBase skillBase = ReflectionHelper.CreatClassByName <SkillBase>("skill1", new object[2] { m_owner, skillId }); if (skillBase == null) { return(null); } m_dicSkill.Add(skillBase); return(skillBase); }
private void GetSkillData() { if (m_professionSkillLoaderData == null) { m_professionSkillLoaderData = ConfigManager.Instance.GetData <ProfessionSkillLoader, ProfessionSkillLoader.Data>(m_owner.SkillConfigId); } uint skillId = 0; GetSkillIdByState(m_eState, out skillId); if (skillId != 0 && m_skillData == null) { m_skillData = ConfigManager.Instance.GetData <SkillLoader, SkillLoader.Data>(skillId); m_nSkillId = skillId; } }