示例#1
0
        public static EffectSpell buildEffectSpell(ObjectJSON effect)
        {
            EffectSpell output = new EffectSpell();

            output.affectAlly   = effect.getBoolArray("affectAlly");
            output.affectEnemy  = effect.getBoolArray("affectEnemy");
            output.affectSelf   = effect.getBoolArray("affectSelf");
            output.affectCell   = effect.getBoolArray("affectCell");
            output.minArea      = effect.getIntArray("minArea");
            output.maxArea      = effect.getIntArray("maxArea");
            output.areaType     = SpellData.stringToRangeAreaType(effect.getStringArray("areaType"));
            output.quickHandler = buildEffectHandler(effect.getObjectJSON("quickHandler"));
            output.slowHandler  = buildEffectHandler(effect.getObjectJSON("slowHandler"));
            output.conditions   = buildEffectConditions(effect.getArrayJSON("conditions"));
            return(output);
        }