mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-12-05 03:30:23 -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>
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
import { GameVersion, VersionInfo } from "../types";
|
|
import * as common from "../../handlers/common";
|
|
import * as lobby from "../../handlers/lobby";
|
|
import { info as globalInfo } from "./info";
|
|
import * as profile from "./profile";
|
|
import { getCourse } from "./course";
|
|
import { getLeague } from "./league";
|
|
|
|
const version: VersionInfo = {
|
|
id: 7, name: "prop", from: 2015022000, until: 2016033000, maxMusicId: 79999999,
|
|
};
|
|
|
|
export const Prop: GameVersion = {
|
|
...version,
|
|
routes: {
|
|
"shopinfo.regist": (info, data, send) => send.object({
|
|
data: {
|
|
cabid: K.ITEM("u32", 1),
|
|
locationid: K.ITEM("str", $(data).str("shop.locationid") || "nowhere"),
|
|
tax_phase: K.ITEM("u8", 1),
|
|
facility: { exist: K.ITEM("u32", 1) },
|
|
info: globalInfo(),
|
|
},
|
|
}, { compress: true }),
|
|
"gametop.get_info": (info, data, send) => send.object({ data: { info: globalInfo() } }, { compress: true }),
|
|
|
|
// Profile
|
|
"gametop.regist": profile.regist,
|
|
"gametop.get_pdata": profile.getPdata,
|
|
"gameend.regist": profile.gameendRegist,
|
|
|
|
// Scores
|
|
"gametop.get_mdata": profile.getMdata(version),
|
|
|
|
// Course mode and league
|
|
"gametop.get_course": getCourse,
|
|
"gametop.get_league": getLeague,
|
|
|
|
// Matching
|
|
"gametop.get_meeting": common.meeting,
|
|
"lobby.check": common.lobbyCheck,
|
|
"lobby.entry": lobby.Entry,
|
|
"lobby.refresh": lobby.Refresh,
|
|
"lobby.report": lobby.Report,
|
|
|
|
// Attract
|
|
"demodata.get_news": common.news,
|
|
"demodata.get_hitchart": common.hitchart(version),
|
|
|
|
"netlog.send": true,
|
|
"logger.report": true,
|
|
|
|
// Referenced by jubeat.dll but not handled by bemaniutils either: acknowledged, nothing stored
|
|
"gametop.get_event": true,
|
|
"gametop.get_collabo": true,
|
|
"gameend.set_event": true,
|
|
"gameend.set_collabo": true,
|
|
},
|
|
};
|