Пример #1
0
 public ChampionSpellStatic(JArray altImagesA,
     JArray cooldownA,
     string cooldownBurn,
     JArray costA,
     string costBurn,
     string costType,
     string description,
     JArray effectA,
     JArray effectBurnA,
     JObject imageO,
     string key,
     JObject levelTipO,
     int maxRank,
     string name,
     object range,
     string rangeBurn,
     string resource,
     string sanitizedDescription,
     string sanitizedTooltip,
     string tooltip,
     JArray varsA)
 {
     altImages = new List<ImageStatic>();
     cooldown = new List<double>();
     cost = new List<int>();
     effect = new List<List<int>>();
     effectBurn = new List<string>();
     rangeList = new List<int>();
     vars = new List<SpellVarsStatic>();
     if (altImagesA != null)
     {
         LoadAltImages(altImagesA);
     }
     LoadCooldowns(cooldownA);
     this.cooldownBurn = cooldownBurn;
     LoadCosts(costA);
     this.costBurn = costBurn;
     this.costType = costType;
     this.description = description;
     if (effectA != null)
     {
         LoadEffects(effectA);
     }
     if (effectBurnA != null)
     {
         this.effectBurn = HelperMethods.LoadStrings(effectBurnA);
     }
     this.image = LoadImage(imageO);
     this.key = key;
     this.levelTip = LoadLevelTip(levelTipO);
     this.maxRank = maxRank;
     this.name = name;
     if (range.GetType() == typeof(JValue))
     {
         rangeString = ((JValue)range).ToString();
     }
     else
     {
         LoadRanges((JArray)range);
     }
     this.rangeBurn = rangeBurn;
     this.resource = resource;
     this.sanitizedDescription = sanitizedDescription;
     this.sanitizedTooltip = sanitizedTooltip;
     this.tooltip = tooltip;
     if (varsA != null)
     {
         LoadVars(varsA);
     }
 }
Пример #2
0
 public ChampionSpellStatic(JArray altImagesA,
                            JArray cooldownA,
                            string cooldownBurn,
                            JArray costA,
                            string costBurn,
                            string costType,
                            string description,
                            JArray effectA,
                            JArray effectBurnA,
                            JObject imageO,
                            string key,
                            JObject levelTipO,
                            int maxRank,
                            string name,
                            object range,
                            string rangeBurn,
                            string resource,
                            string sanitizedDescription,
                            string sanitizedTooltip,
                            string tooltip,
                            JArray varsA)
 {
     altImages  = new List <ImageStatic>();
     cooldown   = new List <double>();
     cost       = new List <int>();
     effect     = new List <List <double> >();
     effectBurn = new List <string>();
     rangeList  = new List <int>();
     vars       = new List <SpellVarsStatic>();
     if (altImagesA != null)
     {
         LoadAltImages(altImagesA);
     }
     LoadCooldowns(cooldownA);
     this.cooldownBurn = cooldownBurn;
     LoadCosts(costA);
     this.costBurn    = costBurn;
     this.costType    = costType;
     this.description = description;
     if (effectA != null)
     {
         LoadEffects(effectA);
     }
     if (effectBurnA != null)
     {
         this.effectBurn = HelperMethods.LoadStrings(effectBurnA);
     }
     this.image    = LoadImage(imageO);
     this.key      = key;
     this.levelTip = LoadLevelTip(levelTipO);
     this.maxRank  = maxRank;
     this.name     = name;
     if (range.GetType() == typeof(JValue))
     {
         rangeString = ((JValue)range).ToString();
     }
     else
     {
         LoadRanges((JArray)range);
     }
     this.rangeBurn            = rangeBurn;
     this.resource             = resource;
     this.sanitizedDescription = sanitizedDescription;
     this.sanitizedTooltip     = sanitizedTooltip;
     this.tooltip = tooltip;
     if (varsA != null)
     {
         LoadVars(varsA);
     }
 }