Skip to content

函数: chartMapKey()

ts
function chartMapKey(
   songId, 
   type, 
   difficulty): string;

定义于: score-key.ts:43

从离散字段拼 key(与 scoreMapKey 结果一致)。

参数

参数类型描述
songIdnumber曲目 id
typeSongType谱面类型(standard / dx / …)
difficultynumber难度下标(LevelIndex 或 number)

返回

string

"{songId}:{type}:{difficulty}"

示例

ts
chartMapKey(11451, "dx", LevelIndex.MASTER); // "11451:dx:3"