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

Method constructor

code/main/StatusBar.ts:36–45  ·  view source on GitHub ↗
(game: Game, selectedTabIndex: number)

Source from the content-addressed store, hash-verified

34
35 // Constructor
36 constructor(game: Game, selectedTabIndex: number){
37 // Se the game
38 this.game = game;
39
40 // Set the default selected tab index
41 this.selectedTabIndex = selectedTabIndex;
42
43 // Add everything for the first time
44 this.deleteAndReAddEverything();
45 }
46
47 // Public methods
48 public deleteAndReAddEverything(): void{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected