All files / player-skin-sdk/src result-data.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

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 21 22 23 24 25                                                 
import type {
  GaugeHistorySample as SceneGaugeHistorySample,
  PlayResult,
  ScoreHistorySample as SceneScoreHistorySample,
} from '@be-music/player-scene-model';
 
/**
 * One sample of the gauge graph. `progress` is the chart-time fraction (0 = the start, 1 = the end of the chart);
 * `value` is the gauge percentage at that moment (0..100). `GaugeHistorySample` of `@be-music/player-scene-model`.
 */
export type GaugeHistorySample = SceneGaugeHistorySample;
 
/**
 * One sample of the EX-score graph. Same shape as {@link GaugeHistorySample} but the value is an absolute EX-score
 * count (0..`total*2`); a result screen normalizes it by the chart's theoretical max when drawing.
 */
export type ScoreHistorySample = SceneScoreHistorySample;
 
/**
 * A play's result, as the result screen draws it (LR2 skin, beatoraja skin or Be-Music Skin): the one result payload of
 * `@be-music/player-scene-model` (`PlayResult`) for a single play, a course stage, a course run or a NONSTOP run. `run` says
 * which; `courseRun` carries a course run's stages reached and trophy.
 */
export type BeMusicResultData = PlayResult;