Skip to content

函数: buildSongLevelMap()

ts
function buildSongLevelMap(songs): Map<string, number>;

定义于: song-maps.ts:158

构建 songId:type:difficulty → level_value 映射。

无有效 level_value 的谱面不写入。

参数

参数类型描述
songsreadonly SongMeta[]曲目列表

返回

Map<string, number>

key 与 chartMapKey 一致;value 为精确定数

示例

ts
const { songs } = await database.getSongList();
const levelByChart = buildSongLevelMap(songs);
levelByChart.get("114:dx:3");