Reference · Original numbered levels
legacyLevelOfCodefunction
What became of a recipe the 1.0.0 list had, or null when it was not one of its levels.
Import it
import { legacyLevelOfCode } from "@johnmorrisdotca/meikyuu/levels/legacy";
Definition
function legacyLevelOfCode(code: string): LegacyMazeLevel | null
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The native encoded recipe or saved run. |
Returns
LegacyMazeLevel | null
What became of a recipe the 1.0.0 list had, or null when it was not one of its levels.
Examples
import { MEIKYUU_LEGACY_MAZE_LEVELS, legacyLevelOfCode } from "@johnmorrisdotca/meikyuu/levels/legacy";
console.log(legacyLevelOfCode(MEIKYUU_LEGACY_MAZE_LEVELS[0].code)?.number);1What it prints (run when this page was built)