Beispiel #1
0
 public GameSettings(Splosion game)
 {
     Game = game;
     if (Utilities.DoesFileExistAsync(ApplicationData.Current.RoamingFolder, "Data"))
     {
         _result = Load <ScoreData>(ApplicationData.Current.RoamingFolder, "Data");
     }
     else
     {
         _data = new ScoreData();
         Save();
     }
 }
Beispiel #2
0
 public void ResetToDefault()
 {
     _data = new ScoreData();
     Save();
 }