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

Method clickedSave

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

Source from the content-addressed store, hash-verified

112 }
113
114 private clickedSave(): void{
115 // Save on the selected slot
116 Saving.save(this.getGame(), MainLoadingType.LOCAL, this.selectedSlot);
117
118 // Re-create the slots array
119 this.createSlotsArray();
120
121 // Update
122 this.update();
123 this.getGame().updatePlace();
124 }
125
126 private createSlotsArray(): void{
127 // Reset the array

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected