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

Method resetResourcesCallbacks

code/main/Game.ts:811–823  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

809 }
810
811 private resetResourcesCallbacks(): void{
812 // Reset status bar resources callbacks
813 this.candies.getCallbackCollection().reset();
814 this.lollipops.getCallbackCollection().reset();
815
816 // Reset other resources callbacks
817 this.candiesEaten.getCallbackCollection().reset();
818 this.candiesThrown.getCallbackCollection().reset();
819
820 // Reset interval callbacks
821 this.oneSecondCallbackCollection.reset();
822 this.questCallbackCollection.reset();
823 }
824
825 private saveCurrentMapPlace(): void{
826 if(this.savedPlace == null) this.savedPlace = this.place;

Callers 1

setPlaceMethod · 0.95

Calls 2

resetMethod · 0.80
getCallbackCollectionMethod · 0.45

Tested by

no test coverage detected