Пример #1
0
 public ChampionStatic(JArray allyTipsA,
                       string blurb,
                       JArray enemyTipsA,
                       int id,
                       JObject imageO,
                       JObject infoO,
                       string key,
                       string lore,
                       string name,
                       string parType,
                       JObject passiveO,
                       JArray recommendedA,
                       JArray skinsA,
                       JArray spellsA,
                       JObject statsO,
                       JArray tagsA,
                       string title)
 {
     System.Diagnostics.Debug.WriteLine(name);
     allyTips    = new List <string>();
     enemyTips   = new List <string>();
     recommended = new List <RecommendedStatic>();
     skins       = new List <SkinStatic>();
     spells      = new List <ChampionSpellStatic>();
     tags        = new List <string>();
     if (allyTipsA != null)
     {
         allyTips = HelperMethods.LoadStrings(allyTipsA);
     }
     this.blurb = blurb;
     if (enemyTipsA != null)
     {
         enemyTips = HelperMethods.LoadStrings(enemyTipsA);
     }
     this.id = id;
     if (imageO != null)
     {
         this.image = HelperMethods.LoadImageStatic(imageO);
     }
     if (infoO != null)
     {
         this.info = LoadInfo(infoO);
     }
     this.key     = key;
     this.lore    = lore;
     this.name    = name;
     this.parType = parType;
     if (passiveO != null)
     {
         this.passive = LoadPassive(passiveO);
     }
     if (recommendedA != null)
     {
         LoadRecommended(recommendedA);
     }
     if (skinsA != null)
     {
         LoadSkins(skinsA);
     }
     if (spellsA != null)
     {
         LoadSpells(spellsA);
     }
     if (statsO != null)
     {
         this.stats = LoadStats(statsO);
     }
     if (tagsA != null)
     {
         tags = HelperMethods.LoadStrings(tagsA);
     }
     this.title = title;
 }
Пример #2
0
 public ChampionStatic(JArray allyTipsA,
     string blurb,
     JArray enemyTipsA,
     int id,
     JObject imageO,
     JObject infoO,
     string key,
     string lore,
     string name,
     string parType,
     JObject passiveO,
     JArray recommendedA,
     JArray skinsA,
     JArray spellsA,
     JObject statsO,
     JArray tagsA,
     string title)
 {
     allyTips = new List<string>();
     enemyTips = new List<string>();
     recommended = new List<RecommendedStatic>();
     skins = new List<SkinStatic>();
     spells = new List<ChampionSpellStatic>();
     tags = new List<string>();
     if (allyTipsA != null)
     {
         allyTips = HelperMethods.LoadStrings(allyTipsA);
     }
     this.blurb = blurb;
     if (enemyTipsA != null)
     {
         enemyTips = HelperMethods.LoadStrings(enemyTipsA);
     }
     this.id = id;
     if (imageO != null)
     {
         this.image = HelperMethods.LoadImageStatic(imageO);
     }
     if (infoO != null)
     {
         this.info = LoadInfo(infoO);
     }
     this.key = key;
     this.lore = lore;
     this.name = name;
     this.parType = parType;
     if (passiveO != null)
     {
         this.passive = LoadPassive(passiveO);
     }
     if (recommendedA != null)
     {
         LoadRecommended(recommendedA);
     }
     if (skinsA != null)
     {
         LoadSkins(skinsA);
     }
     if (spellsA != null)
     {
         LoadSpells(spellsA);
     }
     if (statsO != null)
     {
         this.stats = LoadStats(statsO);
     }
     if (tagsA != null)
     {
         tags = HelperMethods.LoadStrings(tagsA);
     }
     this.title = title;
 }