(superRPG: SuperRPG)
| 3 | class SuperRPGMenu_Main extends SuperRPGMenu{ |
| 4 | // Constructor |
| 5 | constructor(superRPG: SuperRPG){ |
| 6 | super(superRPG, "places/village/thirdHouseGames/SuperRPG/mainMenu", 0); |
| 7 | this.addEntry(new SuperRPGMenuEntry("Start", new CallbackCollection(this.getSuperRPG().startGame.bind(this.getSuperRPG(), false)))); |
| 8 | if(Saving.loadBool("SuperRPGUnlockedHardmode")) |
| 9 | this.addEntry(new SuperRPGMenuEntry("Start (hardmode)", new CallbackCollection(this.getSuperRPG().startGame.bind(this.getSuperRPG(), true)))); |
| 10 | this.addEntry(new SuperRPGMenuEntry("Exit", new CallbackCollection(this.getSuperRPG().exitGame.bind(this.getSuperRPG())))); |
| 11 | } |
| 12 | |
| 13 | // Public methods |
| 14 | public draw(renderArea: RenderArea): void{ |
nothing calls this directly
no test coverage detected