-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathScore.hpp
51 lines (44 loc) · 913 Bytes
/
Score.hpp
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
#pragma once
#include "beatsaber-hook/shared/config/rapidjson-utils.hpp"
#include "shared/Models/Player.hpp"
#include <string>
using namespace std;
struct ScoreImprovement
{
int score = 0;
float accuracy;
int rank;
float pp;
int totalRank;
float totalPp;
ScoreImprovement();
ScoreImprovement(rapidjson::Value const& document);
};
struct Score
{
int id;
// int baseScore;
int modifiedScore;
float accuracy;
string playerId;
string leaderboardId;
float pp;
// float Weight;
int rank;
int countryRank;
string replay;
string modifiers;
int badCuts;
int missedNotes;
int bombCuts;
int wallsHit;
int pauses;
bool fullCombo;
string headsetName;
string timeset;
string platform;
Player player;
ScoreImprovement scoreImprovement;
Score();
Score(rapidjson::Value const& document);
};