All files / player-browser/src/host index.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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94                                                                                                                                                                                           
/**
 * Barrel for the `@be-music/player-browser/host` entry: the host API. `PixiSceneHost` owns the renderer and shows one
 * `PixiScene` at a time; `createSelectScene`, `createDecideScene`, `createPlayScene` and `createResultScene` make each
 * screen as a `SessionScene`, from the kit of a skin family and the scene's options. The family kit types, the view
 * contract types and the sessions' events are exported with them.
 *
 * The models the scenes take and hand back (play options, `PlayResult`, `CourseView`, the hi-speed range) are
 * `@be-music/player-scene-model`'s, and the built-in Be-Music Skins are on `./skin`. Controllers are also available without a renderer from `./controller`. The sessions, views and layers under them
 * (`session/`, `view/`, `stage/`) stay internal to the package.
 */
export * from './scene-host.ts';
 
// Scene sessions and family views (ADR 0001): the kit a host hands each skin family, the frames and intents between a
// session and its view, and the scene that pairs them.
export type * from './family-kit.ts';
export type * from '../view/types.ts';
export {
  SessionScene,
  type SceneSession,
  type SessionKeyEvent,
  type SessionKeyTarget,
  type SessionSceneOptions,
} from '../session/session-scene.ts';
 
// The host API: each screen as a scene, made of its session and the view of the kit's family.
export { createDecideScene, type DecideScene, type DecideSceneKit, type DecideSceneOptions } from './decide.ts';
export type { DecideSessionEvents } from '../session/decide/decide-session.ts';
export { createResultScene, type ResultScene, type ResultSceneKit, type ResultSceneOptions } from './result.ts';
export type { ResultGaugeGraph, ResultSessionEvents } from '../session/result/result-session.ts';
export {
  createPlayScene,
  type BGACamera,
  type PlayScene,
  type PlaySceneCourse,
  type PlaySceneEvents,
  type PlaySceneKit,
  type PlaySceneOptions,
  type PlaySceneRecording,
  type PlaySceneSettings,
} from './play.ts';
export { PlayOptionMismatchError } from '../session/play/play-option-mismatch.ts';
export type { SkinAdjust } from '../session/play/play-options.ts';
export type {
  GhostPresentation,
  GhostPresentationMode,
  GhostScoreTarget,
  GhostSource,
} from '../session/play/ghost/ghost.ts';
export {
  createSelectScene,
  type SelectScene,
  type SelectSceneEvents,
  type SelectSceneKit,
  type SelectSceneOptions,
} from './select.ts';
export type { SelectCourseMaker, SelectSessionEvents, SelectStartEntry } from '../session/select/select-session.ts';
 
export { SceneController, createSelectController, type SceneStore } from './controllers.ts';
 
// What a key config reads: a key press as the lane tokens it gives, and the keys a play keeps for itself.
export { keyboardEventToTokens } from '../runtime/web-input-runtime.ts';
export { PLAY_SCENE_KEY_CODES } from '../session/play/play-keys.ts';
// What a gamepad's buttons are on the select, decide and result screens.
export {
  IIDX_GAMEPAD_MENU_BUTTONS,
  STANDARD_GAMEPAD_MENU_BUTTONS,
  type GamepadMenuButton,
} from '../runtime/gamepad-menu.ts';
export {
  CONTROL_KEY_CONFIG,
  effectiveControlKey,
  resolveControlButtons,
  resolveControlScheme,
  type ControlButton,
  type ControlButtonMap,
  type ControlKeyConfigEntry,
  type ControlKeyId,
  type ControlKeyOverrides,
  type ControlScheme,
  type ControlSettings,
} from '../session/controls/control-buttons.ts';
export {
  CONTROL_ACTION_IDS,
  CONTROL_ACTIONS,
  controlActionKeys,
  resolveControlActions,
  type ControlActionMap,
  type ControlActionDefinition,
  type ControlActionId,
  type ControlActionKey,
  type ControlActionOverrides,
  type ControlScreen,
} from '../session/controls/control-actions.ts';