函数: scoreMapKey()
ts
function scoreMapKey(score): string;定义于: score-key.ts:19
从成绩对象拼 key(字段名与 prober Score 一致)。
参数
| 参数 | 类型 | 描述 |
|---|---|---|
score | { id: number; level_index: number; type: SongType; } | 至少包含 id / type / level_index |
score.id | number | 曲目 id |
score.level_index | number | 难度下标 |
score.type | SongType | 谱面类型 |
返回
string
与 chartMapKey 相同格式的 key
示例
ts
scoreMapKey({ id: 1, type: "dx", level_index: 3 }); // "1:dx:3"