public void ExitGame() { if (Simulation == null) return; Simulation.ExitGame(); Simulation = null; }
public Guid NewGame(string name, int? seed = null) { if (Simulation != null) { Simulation.ExitGame(); Simulation = null; } Simulation = new Simulation(); return Simulation.NewGame(name, seed); }
public void LoadGame(Guid guid) { if (Simulation != null) { Simulation.ExitGame(); Simulation = null; } Simulation = new Simulation(); Simulation.LoadGame(guid); }