You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
287 B
7 lines
287 B
|
3 weeks ago
|
import type { ComposedUnit } from 'db://assets/mx/module/merge';
|
||
|
|
|
||
|
|
/** 合成单位唯一键(与 MergeSession._composeKey 对齐) */
|
||
|
|
export function composeKey(comp: ComposedUnit): string {
|
||
|
|
return `${comp.weapon1Id}:${comp.gridIndices.slice().sort((a, b) => a - b).join(',')}`;
|
||
|
|
}
|