public void Restart() { saveGame.Delete(); score.Reset(); characterProvider.Clear(); pathFinder.DestroyPathMarkers(); RandomSpawn(); gameWorldInput.enabled = true; }
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); }
public static void Delete(GameSave save) { save.Delete(); Reload(); }