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

Method willBeDisplayed

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

Source from the content-addressed store, hash-verified

41
42 // willBeDisplayed()
43 public willBeDisplayed(): void{
44 // We resize (we must do this there and not in the constructor because the size depends on the translation)
45 this.resize();
46
47 // We add a callback : we will be updated every second (in order to show the correct time for the local autosave countdown)
48 this.getGame().getOneSecondCallbackCollection().addCallback(this.oneSecondCallback.bind(this));
49 }
50
51 // Private methods
52 private clickedAutosave(): void{

Callers 1

setPlaceMethod · 0.45

Calls 5

resizeMethod · 0.95
addCallbackMethod · 0.80
bindMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected