MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / clickedAutosave

Method clickedAutosave

code/main/Save.ts:52–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

createSlotsArrayMethod · 0.95
updateMethod · 0.95
enableLocalAutosaveMethod · 0.80
updatePlaceMethod · 0.80
saveMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected