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

Method load

code/main/Resource.ts:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 public load(): void{
37 this.setAccumulated(Saving.loadNumber(this.savingPrefix + "Accumulated"));
38 this.setCurrent(Saving.loadNumber(this.savingPrefix + "Current"));
39 this.setMax(Saving.loadNumber(this.savingPrefix + "Max"));
40 }
41
42 public save(): void{
43 Saving.saveNumber(this.savingPrefix + "Accumulated", this.getAccumulated());

Callers

nothing calls this directly

Calls 3

setAccumulatedMethod · 0.95
setCurrentMethod · 0.95
setMaxMethod · 0.95

Tested by

no test coverage detected