Completely refactor USC support to use Controller/Keyboard playtypes.

This commit is contained in:
zkldi
2021-11-13 08:51:34 +00:00
parent 4d16d24da6
commit eaad1d1cf2
22 changed files with 243 additions and 127 deletions
@@ -4,7 +4,7 @@
"chartID": "USC_CHART_ID",
"difficulty": "NOV",
"songID": 1,
"playtype": "Single",
"playtype": "Controller",
"levelNum": 1,
"level": "1",
"flags": {
+3 -3
View File
@@ -20,8 +20,8 @@ import {
} from "lib/constants/usc-ir";
import { DryScore } from "lib/score-import/framework/common/types";
import { BarbatosScore } from "lib/score-import/import-types/ir/barbatos/types";
import { USCClientScore } from "../server/router/ir/usc/types";
import { KsHookSV3CScore } from "lib/score-import/import-types/ir/kshook-sv3c/types";
import { USCClientScore } from "server/router/ir/usc/_playtype/types";
const file = (name: string) => path.join(__dirname, "/test-data", name);
@@ -200,12 +200,12 @@ export const barbScore: BarbatosScore = {
song_id: 1,
};
export const uscChart: ChartDocument<"usc:Single"> = {
export const uscChart: ChartDocument<"usc:Controller" | "usc:Keyboard"> = {
rgcID: null,
chartID: "USC_CHART_ID",
difficulty: "NOV",
songID: 1,
playtype: "Single",
playtype: "Keyboard",
levelNum: 1,
level: "1",
data: {