mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-12-04 19:20:29 -06:00
Each version (prop, Qubell, clan, festo) is now a module under versions/ with its own route table and model date range. All jubeat versions call the same method names, so versions/index.ts registers one route per method and picks the version from the model date. - handlers/player.ts: one jubeat ID and name per card, in the existing festo `profile` document - handlers/scores.ts: one score store for every version; prop, Qubell and clan only see normal-mode charts of songs up to their own - handlers/version_data.ts: per-version fields, course and league results, keyed by version id (7 prop, 8 Qubell, 9 clan, 10 festo) - V2.1.0 Qubell saves move to the shared profile and scores on first login; the old documents are kept and marked `migrated` - festo moves to versions/festo with the same requests and responses; records without a ghost now get an empty one instead of a broken node - builds older than prop are refused instead of answered as Qubell Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
/**
|
|
* Identity of a supported game version.
|
|
*
|
|
* Every jubeat version calls the same method names (`gametop.get_pdata`, ...),
|
|
* so the version is picked from the date in the model string
|
|
* (`L44:J:A:A:2015100000`) instead of from the method name.
|
|
*/
|
|
export interface VersionInfo {
|
|
/**
|
|
* The game's number in the series (7 prop, 8 Qubell, 9 clan, 10 festo).
|
|
* Also the key of per-version records, and the first digits of the music
|
|
* ids the version added.
|
|
*/
|
|
readonly id: number;
|
|
/** Display name. */
|
|
readonly name: string;
|
|
/** First model date the version answers (inclusive). */
|
|
readonly from: number;
|
|
/** First model date it no longer answers (exclusive). */
|
|
readonly until: number;
|
|
/**
|
|
* Highest music id the version can have. Records are shared by all
|
|
* versions; songs added later are not sent. Undefined: no limit.
|
|
*/
|
|
readonly maxMusicId?: number;
|
|
}
|
|
|
|
export interface GameVersion extends VersionInfo {
|
|
/** Handlers by full method name (`gametop.get_pdata`). */
|
|
readonly routes: Readonly<Record<string, EamusePluginRoute | boolean>>;
|
|
}
|