Exemple #1
0
        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);
        }
Exemple #2
0
 public void CreateSummon(uint owner, uint id)
 {
     summon = new Code.SkillSystem.Runtime.Summon();
     summon.LoadData(m_character, owner, id);
 }
Exemple #3
0
 public void RemoveSummon(uint owner, uint id)
 {
     summon = new Code.SkillSystem.Runtime.Summon();
     summon.Remove(owner, id);
 }
 public SMTriggerCondition(Summon summon)
 {
     m_Summon = summon;
 }