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

Method addHotkey

code/main/Game.ts:172–174  ·  view source on GitHub ↗
(hotkey: Hotkey)

Source from the content-addressed store, hash-verified

170
171 // Public methods
172 public addHotkey(hotkey: Hotkey){
173 this.hotkeys[hotkey.getKeyString()] = hotkey;
174 }
175
176 public addSpecialHotkey(hotkey: Hotkey){
177 this.specialHotkeys.push(hotkey);

Callers 7

willBeDisplayedMethod · 0.80
willBeDisplayedMethod · 0.80
willBeDisplayedMethod · 0.80
willBeDisplayedMethod · 0.80
addHotkeysMethod · 0.80
willBeDisplayedMethod · 0.80
willBeDisplayedMethod · 0.80

Calls 1

getKeyStringMethod · 0.80

Tested by

no test coverage detected