コード例 #1
0
 public SummonerSpellStatic(JArray cooldownA,
                            string cooldownBurn,
                            JArray costA,
                            string costBurn,
                            string costType,
                            string description,
                            JArray effectA,
                            JArray effectBurnA,
                            int id,
                            JObject imageO,
                            string key,
                            JObject levelTipO,
                            int?maxRank,
                            JArray modesA,
                            string name,
                            object range,
                            string rangeBurn,
                            string resource,
                            string sanitizedDescription,
                            string sanitizedTooltip,
                            int?summonerLevel,
                            string tooltip,
                            JArray varsA)
 {
     cooldown   = new List <double>();
     cost       = new List <int>();
     effect     = new List <List <int> >();
     effectBurn = new List <string>();
     modes      = new List <string>();
     rangeList  = new List <int>();
     vars       = new List <SpellVarsStatic>();
     if (cooldownA != null)
     {
         LoadCooldowns(cooldownA);
     }
     this.cooldownBurn = cooldownBurn;
     if (costA != null)
     {
         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.id = id;
     if (imageO != null)
     {
         this.image = LoadImage(imageO);
     }
     this.key = key;
     if (levelTipO != null)
     {
         this.levelTip = LoadLevelTip(levelTipO);
     }
     this.maxRank = maxRank;
     if (modesA != null)
     {
         this.modes = HelperMethods.LoadStrings(modesA);
     }
     this.name = name;
     if (range != null)
     {
         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.summonerLevel        = summonerLevel;
     this.tooltip = tooltip;
     if (varsA != null)
     {
         LoadVars(varsA);
     }
 }
コード例 #2
0
 public RuneStatic(string colloq,
                   bool?consumeOnFull,
                   bool?consumed,
                   int?depth,
                   string description,
                   JArray fromA,
                   JObject goldO,
                   string group,
                   bool?hideFromAll,
                   int id,
                   JObject imageO,
                   bool?inStore,
                   JArray intoA,
                   JObject maps,
                   string name,
                   string plainText,
                   string requiredChampion,
                   JObject runeO,
                   string sanitizedDescription,
                   int?specialRecipe,
                   int?stacks,
                   JObject statsO,
                   JArray tagsA)
 {
     from               = new List <string>();
     into               = new List <string>();
     this.maps          = new Dictionary <string, bool>();
     tags               = new List <string>();
     this.colloq        = colloq;
     this.consumeOnFull = consumeOnFull;
     this.consumed      = consumed;
     this.depth         = depth;
     this.description   = description;
     if (fromA != null)
     {
         this.from = HelperMethods.LoadStrings(fromA);
     }
     if (goldO != null)
     {
         LoadGold(goldO);
     }
     this.group       = group;
     this.hideFromAll = hideFromAll;
     this.id          = id;
     if (imageO != null)
     {
         this.image = HelperMethods.LoadImageStatic(imageO);
     }
     this.inStore = inStore;
     if (intoA != null)
     {
         this.into = HelperMethods.LoadStrings(intoA);
     }
     if (maps != null)
     {
         this.maps = JsonConvert.DeserializeObject <Dictionary <string, bool> >(maps.ToString());
     }
     this.name             = name;
     this.plainText        = plainText;
     this.requiredChampion = requiredChampion;
     if (runeO != null)
     {
         this.rune = HelperMethods.LoadMetaDataStatic(runeO);
     }
     this.sanitizedDescription = sanitizedDescription;
     this.stacks = stacks;
     if (statsO != null)
     {
         LoadBasicDataStats(statsO);
     }
     if (tagsA != null)
     {
         this.tags = HelperMethods.LoadStrings(tagsA);
     }
 }