Example #1
0
 private void Save()
 {
     if (this.savePath == null && !SetSaveLocation()) {
         return;
     }
     using(Saver saver = new FileSaver(this.savePath)) {
         this.currentProject.Save(saver);
     }
 }
Example #2
0
 public void SaveGame(string saveData, int saveSlot)
 {
     using (FileSaver saver = new FileSaver("save")) {
         saver.Save(string.Format("save{0}", saveSlot), saveData);
         PropertyWriter map = saver.CreatePropertyFile(string.Format("savemap{0}.xml", saveSlot));
         this.game.currentMap.SaveToSaveFile(map);
     }
 }