DDR Implementation (#1132)

* feat: DDR Implementation

* style: lint fixes

* chore: update rg-stats

* feat: ddr konaste songs and charts update
This commit is contained in:
Gyoo
2024-08-09 19:08:49 +01:00
committed by GitHub
parent 65a79eac2b
commit 4254e29917
32 changed files with 165652 additions and 46 deletions
+5
View File
@@ -5,6 +5,7 @@ import {
FakeOtherUser,
HC511Goal,
HC511UserGoal,
TestingDDRSPScorePB,
TestingIIDXSPScore,
TestingIIDXSPScorePB,
TestingJubeatPB,
@@ -101,6 +102,10 @@ export function mkFakePBIIDXSP(modifant: DeepPartial<PBScoreDocument<"iidx:SP">>
return dmf(TestingIIDXSPScorePB, modifant);
}
export function mkFakePBDDRSP(modifant: DeepPartial<PBScoreDocument<"ddr:SP">> = {}) {
return dmf(TestingDDRSPScorePB, modifant);
}
export function mkFakePBJubeat(modifant: DeepPartial<PBScoreDocument<"jubeat:Single">> = {}) {
return dmf(TestingJubeatPB, modifant);
}
+97
View File
@@ -101,6 +101,44 @@ export const TestingIIDXSPScorePB: PBScoreDocument<"iidx:SP"> = {
timeAchieved: 10000,
};
export const TestingDDRSPScorePB: PBScoreDocument<"ddr:SP"> = {
calculatedData: {
flareSkill: 545,
},
chartID: "f14bc72ad8336625ce64fc42571192e1ec168113",
composedFrom: [
{
name: "Best Score",
scoreID: "Te065000f08b49458f8b0aa3eabf0b857b79c562d7cf9eb34f6dabd7a1c3c3fa6",
},
],
game: "ddr",
highlight: false,
isPrimary: true,
playtype: "SP",
rankingData: {
rank: 1,
outOf: 1,
rivalRank: null,
},
scoreData: {
score: 914400,
lamp: "CLEAR",
judgements: {},
optional: {
enumIndexes: {},
},
grade: "AA",
enumIndexes: {
lamp: 2,
grade: 13,
},
},
songID: 37691,
timeAchieved: null,
userID: 1,
};
export const TestingJubeatPB: PBScoreDocument<"jubeat:Single"> = {
chartID: "b90a319f18d1a746b330b8f4cd6f74874f664421",
userID: 1,
@@ -172,6 +210,39 @@ export const TestingIIDXSPScore: ScoreDocument<"iidx:SP"> = {
importType: "ir/direct-manual",
};
export const TestingDDRSPScore: ScoreDocument<"ddr:SP"> = {
calculatedData: {
flareSkill: 545,
},
chartID: "2fc2e0cfdda42addb7840b58be1df1f545310d66",
comment: null,
game: "ddr",
highlight: false,
importType: "file/batch-manual",
isPrimary: true,
playtype: "SP",
scoreData: {
score: 914400,
lamp: "CLEAR",
judgements: {},
optional: {
enumIndexes: {},
},
grade: "AA",
enumIndexes: {
lamp: 2,
grade: 13,
},
},
scoreID: "Te065000f08b49458f8b0aa3eabf0b857b79c562d7cf9eb34f6dabd7a1c3c3fa6",
scoreMeta: {},
service: "History (BATCH-MANUAL)",
songID: 10,
timeAchieved: null,
timeAdded: 1722084133807,
userID: 1,
};
export const TestingSDVXScore: ScoreDocument<"sdvx:Single"> = {
service: "foo (DIRECT-MANUAL)",
game: "sdvx",
@@ -475,6 +546,32 @@ export const Testing511Song: SongDocument<"iidx"> = {
},
};
export const TestingDDRSP: ChartDocument<"ddr:SP"> = {
chartID: "2fc2e0cfdda42addb7840b58be1df1f545310d66",
data: {
inGameID: 10,
},
difficulty: "BASIC",
isPrimary: true,
level: "6",
levelNum: 6,
playtype: "SP",
songID: 10,
versions: ["a3"],
};
export const TestingDDRSong: SongDocument<"ddr"> = {
altTitles: [],
artist: "UZI-LAY",
data: {
flareCategory: "CLASSIC",
inGameID: 10,
},
id: 10,
searchTerms: [],
title: "PUT YOUR FAITH IN ME",
};
export const TestingAlbidaADV: ChartDocument<"sdvx:Single"> = {
chartID: "5088a4d0e1ee9d0cc2f625934306e45b1a60699b",
difficulty: "ADV",