public void CreateData() { Character = new CharacterData(ref Settings); Corporation = new CorporationData(ref Settings); Alliance = new AllianceData(ref Settings); //Market = new MarketData(ref Settings); //Public = new PublicData(ref Settings); //Universe = new UniverseData(ref Settings); }
protected override bool ReadInData() { using (StreamReader myReader = new StreamReader(SaveFile)) { AllianceData temp = Settings.MainSettings.serializer.Deserialize <AllianceData>(new JsonTextReader(myReader)); Console.Write($"Loading data from {Path.GetFileName(SaveFile)}"); Console.Write(" - successful"); Console.WriteLine(); return(true); } }