()
| 50 | |
| 51 | // Private methods |
| 52 | private clickedAutosave(): void{ |
| 53 | // Save on the selected slot |
| 54 | Saving.save(this.getGame(), MainLoadingType.LOCAL, this.selectedSlot); |
| 55 | |
| 56 | // Enable autosaving |
| 57 | this.getGame().enableLocalAutosave(this.selectedSlot); |
| 58 | |
| 59 | // Re-create the slots array |
| 60 | this.createSlotsArray(); |
| 61 | |
| 62 | // Update |
| 63 | this.update(); |
| 64 | this.getGame().updatePlace(); |
| 65 | } |
| 66 | |
| 67 | private clickedDisableAutosave(): void{ |
| 68 | // We disable auto saving |
nothing calls this directly
no test coverage detected