Example #1
0
 public void Load(string file)
 {
     if (!IsLoaded)
     {
         PersonalImprovementJsonData jsonData = JsonConvert.DeserializeObject <PersonalImprovementJsonData>(Resources.Load <TextAsset>(file).text);
         Data.Copy(jsonData);
         IsLoaded = true;
     }
 }
Example #2
0
 public void Copy(PersonalImprovementJsonData data)
 {
     ConvertData = new PersonalConvertData(data.convertData);
     //Products = new Dictionary<ProductType, List<ProductData>>();
     //foreach (var kvp in data.products) {
     //    Products.Add((ProductType)kvp.Key, kvp.Value.Select(o => new ProductData(o)).ToList());
     //}
     StatusPoints = data.statusPoints.Select(sp => new StatusPointData(sp)).ToList();
 }
Example #3
0
 public PersonalImprovementsData(PersonalImprovementJsonData data)
 {
     Copy(data);
 }