Beispiel #1
0
 public void Restart()
 {
     saveGame.Delete();
     score.Reset();
     characterProvider.Clear();
     pathFinder.DestroyPathMarkers();
     RandomSpawn();
     gameWorldInput.enabled = true;
 }
Beispiel #2
0
        private void deleteSaveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GameSave selectedSave = GetSelectedSave(false);

            if (selectedSave == null)
            {
                return;
            }

            DialogResult res = MessageBox.Show("Remove save '" + selectedSave.Name + "'?", "Remove Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (res == DialogResult.Yes)
            {
                selectedSave.Delete();
                gameSaves.Remove(selectedSave.ID);
            }
            Analytics.TrackEvent("SaveList", "DeleteSave", selectedSave.Name);
            lstGameSaves.BuildList(true);
        }
Beispiel #3
0
        public static void Delete(GameSave save)
        {
            save.Delete();

            Reload();
        }