Beispiel #1
0
 public ItemListStatic(JObject basicO,
                       JObject dataO,
                       JArray groupsA,
                       JArray treeA,
                       string type,
                       string version,
                       JObject originalObject)
 {
     data   = new Dictionary <string, ItemStatic>();
     groups = new List <GroupStatic>();
     tree   = new List <ItemTreeStatic>();
     if (basicO != null)
     {
         basic = HelperMethods.LoadBasicDataStatic(basicO);
     }
     if (dataO != null)
     {
         LoadData(dataO.ToString());
     }
     if (groupsA != null)
     {
         LoadGroups(groupsA);
     }
     if (treeA != null)
     {
         LoadTree(treeA);
     }
     this.type           = type;
     this.version        = version;
     this.originalObject = originalObject;
 }
Beispiel #2
0
 public RuneListStatic(JObject basicO,
                       JObject dataO,
                       string type,
                       string version,
                       JObject originalObject)
 {
     data = new Dictionary <string, RuneStatic>();
     if (basicO != null)
     {
         this.basic = HelperMethods.LoadBasicDataStatic(basicO);
     }
     if (dataO != null)
     {
         this.data = LoadData(dataO.ToString());
     }
     this.type           = type;
     this.version        = version;
     this.originalObject = originalObject;
 }