public ConvergeCommand_Upgrade(JSONArray template, ContentManager Content)
        {
            patients        = ConvergeSelector.New(template.getProperty(1));
            powerAmount     = ConvergeCalculation.New(template.getProperty(2));
            toughnessAmount = ConvergeCalculation.New(template.getProperty(3));
            if (template.Length >= 5)
            {
                keywords = template.getArray(4).ToKeywords();
            }

            if (template.Length >= 6)
            {
                duration = (ConvergeDuration)Enum.Parse(typeof(ConvergeDuration), template.getString(5));
            }
            else
            {
                duration = ConvergeDuration.Permanent;
            }

            if (template.Length >= 7)
            {
                new_art = Content.Load <Texture2D>(template.getString(6));
            }
        }
 public ConvergeSelector_Compare(JSONArray template)
 {
     comparison = (ConvergeComparison)Enum.Parse(typeof(ConvergeComparison), template.getString(0));
     a          = ConvergeCalculation.New(template.getProperty(1));
     b          = ConvergeCalculation.New(template.getProperty(2));
 }
 public ConvergeCommand_Heal(JSONArray template)
 {
     amount   = ConvergeCalculation.New(template.getProperty(1));
     patients = ConvergeSelector.New(template.getProperty(2));
 }
 public ConvergeCommand_GainLife(JSONArray template)
 {
     subjects = ConvergeSelector.New(template.getProperty(1));
     amount   = ConvergeCalculation.New(template.getProperty(2));
 }
 public ConvergeCommand_Damage(JSONArray template)
 {
     sources = ConvergeSelector.New(template.getProperty(1));
     amount  = ConvergeCalculation.New(template.getProperty(2));
     victims = ConvergeSelector.New(template.getProperty(3));
 }