Ejemplo n.º 1
0
        public TSkillCond BuildCond(TSkillCondType type, string str)
        {
            TSkillCond cond = null;

            switch (type)
            {
            case TSkillCondType.can_summon_cubic:
                cond = new can_summon_cubic();
                break;
            }

            if (cond != null)
            {
                cond.build(str);
            }

            return(cond);
        }
Ejemplo n.º 2
0
        public void SetOperateCond(string value)
        {
            if (value.StartsWith("{"))
            {
                return;
            }

            foreach (string str in value.Split(';'))
            {
                TSkillCondType type = (TSkillCondType)Enum.Parse(typeof(TSkillCondType), str.Split(' ')[0]);
                TSkillCond     cond = TEffectRegistrator.getInstance().BuildCond(type, str);
                if (Conditions == null)
                {
                    Conditions = new List <TSkillCond>();
                }

                Conditions.Add(cond);
            }
        }