Exemplo n.º 1
0
 //Saves the game progress
 public static void SaveData()
 {
     if (Save != null)
     {
         ClassToXmlFileIO.Save("Project_SOUL", "Save", Save);
     }
 }
Exemplo n.º 2
0
 //Saves the settings
 public static void SaveSettings()
 {
     if (Settings != null)
     {
         ClassToXmlFileIO.Save("Project_SOUL", "Settings", Settings);
     }
 }
Exemplo n.º 3
0
 //Saves the keybindings
 public static void SaveKeys()
 {
     if (Keys != null)
     {
         ClassToXmlFileIO.Save("Project_SOUL", "Keybindings", Keys);
     }
 }
Exemplo n.º 4
0
 //Loads the game progress. Creates a new save if it can't find an existing one
 private void LoadData()
 {
     Save = ClassToXmlFileIO.Load <SaveFile>("Project_SOUL", "Save");
     if (Save == null)
     {
         Save = new SaveFile();
         ClassToXmlFileIO.Save("Project_SOUL", "Save", Save);
     }
 }
Exemplo n.º 5
0
 //Loads the settings. Creates a new file if none exists
 private void LoadSettings()
 {
     Settings = ClassToXmlFileIO.Load <Settings>("Project_SOUL", "Settings");
     if (Settings == null)
     {
         Settings = new Settings();
         ClassToXmlFileIO.Save("Project_SOUL", "Settings", Settings);
     }
 }
Exemplo n.º 6
0
 //Loads the keybinds. Creates a new file if none exists
 private void LoadKeys()
 {
     Keys = ClassToXmlFileIO.Load <Keys>("Project_SOUL", "Keybindings");
     if (Keys == null)
     {
         Keys = new Keys();
         ClassToXmlFileIO.Save("Project_SOUL", "Keybindings", Keys);
     }
 }