17 bool replayUsedMirror =
false;
18 float replayRate = 1.F;
19 std::string replayModifiers{};
20 std::string oldModifiers{};
22 std::string oldNoteskin{};
23 FailType oldFailType = FailType_Immediate;
24 int replayRngSeed = 0;
30 replayModifiers = std::string();
31 replayUsedMirror =
false;
33 oldModifiers = std::string();
35 oldNoteskin = std::string();
36 oldFailType = FailType_Immediate;
50 void ReleaseReplay(
Replay* replay);
51 Replay* GetSpectateReplay(
const std::string& playerID);
57 float timingScale = 1.F,
60 Replay* InitReplayPlaybackForSpectate(std::string playerID,
68 void UnsetActiveReplay();
75 void StoreActiveReplaySettings(
float replayRate,
76 std::string& replayModifiers,
77 bool replayUsedMirror,
80 void StoreOldSettings(
float oldRate,
81 std::string& oldModifiers,
83 std::string& oldNoteskin,
87 void ResetActiveReplaySettings();
89 static TapNoteScore GetTapNoteScoreForReplay(
float fNoteOffset,
90 float timingScale = 1.F);
92 auto CalculateRadarValuesForReplay(
Replay& replay,
96 auto RescoreReplay(
Replay& replay,
98 float timingScale = 1.F) -> bool;
100 auto GenerateLifeRecordForReplay(
Replay& replay,
float timingScale = 1.F)
101 -> std::map<float, float>;
103 auto GenerateComboListForReplay(
Replay& replay,
float timingScale = 1.F)
104 -> std::vector<PlayerStageStats::Combo_t>;
106 void EnableCustomScoringFunctions() {
107 customScoringFunctionsEnabled =
true;
109 void DisableCustomScoringFunctions() {
110 customScoringFunctionsEnabled =
false;
112 bool isCustomScoringFunctionsEnabled() {
113 return customScoringFunctionsEnabled;
125 float timingScale) -> float;
148 void SetTotalWifePointsCalcFunction(
const LuaReference& ref) {
149 m_totalWifePointsCalcFunc = ref;
152 m_mineScoringFunc = ref;
154 void SetHoldNoteScoringFunction(
const LuaReference& ref) {
155 m_holdNoteScoreScoringFunc = ref;
158 m_tapScoringFunc = ref;
160 void SetOffsetJudgingFunction(
const LuaReference& ref) {
161 m_offsetJudgingFunc = ref;
164 m_missWindowFunc = ref;
174 std::unordered_map<std::string, std::pair<unsigned, Replay*>>
178 std::unordered_map<std::string, Replay*> spectatorReplays{};
187 bool customScoringFunctionsEnabled =
false;
Replay * GetReplay(const HighScore *hs)
Return the Replay for this HighScore. Never null.
Definition ReplayManager.cpp:18