Exemplo n.º 1
0
        public static ITimedEffect CreateEmpty(string result)
        {
            string[]     parts       = result.Split(new char[] { '_' }, 2);
            string[]     dummyparams = new string[] { "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0" };
            ITimedEffect eff;

            switch (parts[0])
            {
            case "VFX":
            {
                eff = AbilityVFX.CreateEffect(parts[1], dummyparams);
                break;
            }

            case "Effect":
            {
                eff = AbilityEffect.CreateEffect(parts[1], dummyparams);
                break;
            }

            case "Selector":
            {
                eff = AbilitySelector.CreateEffect(parts[1], dummyparams);
                break;
            }

            default:
            {
                eff = AbilityEffect.CreateEffect("null", dummyparams);
                break;
            }
            }
            return(eff);
        }
Exemplo n.º 2
0
        public static AbilitySelector CreateEffect(string type, string[] parameters)
        {
            AbilitySelector ef = null;

            switch (type)
            {
                //case "around_target":
                //  return new Selectors.SEL_around_target(parameters);
            }


            return(ef);
        }