All files / player-skin-sdk/src play-options.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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53                                                                                                         
import type {
  BGAMode,
  BGASize,
  BrowseSort,
  DifficultyFilter,
  HiddenSuddenMode,
  HSFix,
  KeysFilter,
  PlayOptions,
  RandomMode,
} from '@be-music/player-scene-model';
import type { GaugePick } from '@be-music/player-engine/ruleset';
 
/**
 * Per-session gameplay tweaks the player picks on the select screen (`PlayOptions` of `@be-music/player-scene-model`):
 * hi-speed, autoplay, note arrangement, gauge type, HIDDEN / SUDDEN and the lane cover, BGA display, and the list's
 * sort and filters. The host owns the live values and hands them to every play it launches; Be-Music Skins read them
 * from `BeMusicSelectFrame.playOptions` / `BeMusicDecideFrame.playOptions` and change them through
 * `BeMusicSelectActions.setPlayOption` / `cyclePlayOption`.
 */
export type BeMusicPlayOptions = PlayOptions;
 
/** Allowed values for {@link BeMusicPlayOptions.difficultyFilter}. */
export type BeMusicDifficultyFilter = DifficultyFilter;
 
/** Allowed values for {@link BeMusicPlayOptions.keysFilter}. */
export type BeMusicKeysFilter = KeysFilter;
 
/** Allowed values for {@link BeMusicPlayOptions.sort}. */
export type BeMusicSelectSort = BrowseSort;
 
/** Allowed values for {@link BeMusicPlayOptions.hsFix}. */
export type BeMusicHSFix = HSFix;
 
/** Allowed values for {@link BeMusicPlayOptions.hiddenSudden1P} / `hiddenSudden2P`. */
export type BeMusicHiddenSudden = HiddenSuddenMode;
 
/** Allowed values for {@link BeMusicPlayOptions.random1P} / `random2P`. */
export type BeMusicRandomMode = RandomMode;
 
/**
 * Allowed values for {@link BeMusicPlayOptions.gauge1P} / `gauge2P`: the gauge pick of `@be-music/player-engine/ruleset`.
 * A bare gauge type (`HARD`) is the judge ruleset's own; one qualified with its source (`lr2:HARD`, `beatoraja:EX-HARD`)
 * keeps that source's gauge under every judge ruleset.
 */
export type BeMusicGaugeType = GaugePick;
 
/** Allowed values for {@link BeMusicPlayOptions.bga}. */
export type BeMusicBGAMode = BGAMode;
 
/** Allowed values for {@link BeMusicPlayOptions.bgaSize}. */
export type BeMusicBGASize = BGASize;