public List <Motion> GetMotion(uint owner_skill, uint owner_summon, Summon summon) { List <Motion> motions = new List <Motion>(); List <Prop> props = new List <Prop>(); if (!m_Datas.ContainsKey(owner_skill)) { return(motions); } if (m_Datas[owner_skill].TryGetValue(owner_summon, out props)) { for (int i = 0; i < props.Count; i++) { System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly(); // 获取当前程序集 Motion motion = (Motion)assembly.CreateInstance("Code.SkillSystem.Runtime." + props[i].GetString(PropertiesKey.MOTION_TYPE)); motion.Create(props[i], summon); motions.Add(motion); } } return(motions); }
public void CreateSummon(uint owner, uint id) { summon = new Code.SkillSystem.Runtime.Summon(); summon.LoadData(m_character, owner, id); }
public void RemoveSummon(uint owner, uint id) { summon = new Code.SkillSystem.Runtime.Summon(); summon.Remove(owner, id); }
public SMTriggerCondition(Summon summon) { m_Summon = summon; }