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

Method loadTreasure

code/main/MainMap.ts:428–433  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

426 }
427
428 private loadTreasure(x: number, y: number): void{
429 // The button
430 this.renderArea.addAsciiNinjaButton(x, x+3, y, "mapTreasureButton");
431 // Interactions
432 this.renderArea.addLinkCall(".mapTreasureButton", new CallbackCollection(this.goToTreasure.bind(this)));
433 }
434
435 private loadVillage(x: number, y: number): void{
436 // Buttons

Callers 1

loadMethod · 0.95

Calls 3

addAsciiNinjaButtonMethod · 0.80
addLinkCallMethod · 0.80
bindMethod · 0.80

Tested by

no test coverage detected