public string[] GetWorlds() { //Todo: replace fixed slots with ability to load any files, for easy //copying of saves. Identify world names by filename instead of slot.txt. string[] w = new string[0]; if (File.Exists(slotspath)) { w = File.ReadAllLines(slotspath); } string[] worlds = new string[8]; for (int i = 0; i < w.Length; i++) { worlds[i] = w[i]; } return(worlds); }
private void StartGame() { w = new ManicDiggerGameWindow(); if (maingamewindow == null) { //wasn't done in StartMenu(). maingamewindow = new MainGameWindow(w); } maingamewindow.mywindow = w; w.d_MainWindow = maingamewindow; w.d_Exit = exit; w.d_Audio = audio; MakeGame(); w.connectdata = connectdata; w.Run(); }