MCPcopy Create free account
hub / github.com/c3bottles/c3bottles / getLevelNumber

Function getLevelNumber

js/common/map.js:27–35  ·  view source on GitHub ↗
(layer)

Source from the content-addressed store, hash-verified

25}
26
27function getLevelNumber(layer) {
28 const level_config = mapSource.level_config;
29
30 for (const item in level_config) {
31 if (level_config[item][0] === parseInt(layer, 10)) {
32 return level_config[item][1];
33 }
34 }
35}
36
37function getIcon(category, state) {
38 const size = 12;

Callers 1

_levelClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected