public BasicDataStatic(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);
     }
 }
Beispiel #2
0
 public BasicDataStatic(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);
     }
 }