This commit is contained in:
2022-05-22 23:34:42 +08:00
parent d0416b02bd
commit a9f7967976
30 changed files with 904 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
public class Controller {
protected Model m;
public Controller(Model m) {
this.m = m;
}
/**
* Gracefully exits the program.
*/
protected void shutdown() {
m.saveData();
System.exit(0);
}
}