All files / player-browser/src/skin/default family.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                            20x          
import type { SkinFamily } from '../family.ts';
 
/**
 * Default skin family. Returned by `SkinFamilyRegistry` as the fallthrough when no other family claims a chart — it
 * has no theme files of its own, so it deliberately omits `matchesThemeFile`. Hosts pick this family when:
 *
 * - the user dropped charts without dropping any theme bundle, OR
 * - the dropped theme(s) don't cover the chart's key mode (e.g. a 9-key chart and an LR2 theme that ships only
 *   `play_7.lr2skin` — the LR2 path takes over, but at the gameplay scene it falls back to this family's chrome).
 *
 * Its select, decide, play and result screens are `createSelectScene`, `createDecideScene`, `createPlayScene` and
 * `createResultScene` with a built-in kit. A Be-Music Skin without a decide screen skips the splash and hands straight
 * off to gameplay.
 */
export const defaultSkinFamily: SkinFamily = {
  id: 'default',
  label: 'Default',
  // Intentionally no `matchesThemeFile` — default is the fallthrough, never selected by drop routing.
};