-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
84 lines (75 loc) · 1.73 KB
/
models.py
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
from pydantic import BaseModel, Field
class Beatmap(BaseModel):
songName: str
songSubName: str
songAuthorName: str
levelAuthorName: str
songHash: str = Field(None)
levelId: str
songBPM: float
noteJumpSpeed: float
songTimeOffset: int
length: int
difficulty: str
notesCount: int
bombsCount: int
obstaclesCount: int
maxScore: int
maxRank: str
environmentName: str
class Mod(BaseModel):
multiplier: float
obstacles: str
instaFail: bool
noFail: bool
batteryEnergy: bool
batteryLives: int = Field(None)
disappearingArrows: bool
noBombs: bool
songSpeed: str
songSpeedMultiplier: float
noArrows: bool
ghostNotes: bool
failOnSaberClash: bool
strictAngles: bool
fastNotes: bool
smallNotes: bool
proMode: bool
zenMode: bool
class Performance(BaseModel):
rawScore: int
score: int
currentMaxScore: int
rank: str
passedNotes: int
hitNotes: int
missedNotes: int
passedBombs: int
hitBombs: int
combo: int
maxCombo: int
multiplier: int
multiplierProgress: float
batteryEnergy: int = Field(None)
softFailed: bool
class NoteCut(BaseModel):
noteID: int
noteType: str
noteCutDirection: str
noteLine: int
noteLayer: int
speedOK: bool
directionOK: bool
saberTypeOK: bool
wasCutTooSoon: bool
initialScore: int = Field(None)
finalScore: int = Field(None)
cutDistanceScore: int = Field(None)
multiplier: int
saberSpeed: float = Field(None)
saberType: str = Field(None)
swingRating: float
timeDeviation: float
cutDirectionDeviation: float
cutDistanceToCenter: float
timeToNextBasicNote: float = Field(None)