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); }
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); } }