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