Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ReplayManager Class Reference

Public Member Functions

ReplayGetReplay (const HighScore *hs)
 Return the Replay for this HighScore. Never null.
 
void ReleaseReplay (Replay *replay)
 
ReplayInitReplayPlaybackForScore (HighScore *hs, float timingScale=1.F, int startRow=0)
 
void UnsetActiveReplay ()
 
ReplayGetActiveReplay ()
 Returns the Replay being watched by the player. Never null.
 
HighScoreGetActiveReplayScore ()
 
void StoreActiveReplaySettings (float replayRate, std::string &replayModifiers, bool replayUsedMirror, int replayRngSeed)
 
void StoreOldSettings (float oldRate, std::string &oldModifiers, FailType oldFailType, std::string &oldNoteskin, int oldRngSeed)
 
TemporaryReplaySettings GetActiveReplaySettings ()
 
void ResetActiveReplaySettings ()
 
auto CalculateRadarValuesForReplay (Replay &replay, RadarValues &rv, RadarValues &possibleRV) -> bool
 
auto RescoreReplay (Replay &replay, PlayerStageStats *pss, float timingScale=1.F) -> bool
 
auto GenerateLifeRecordForReplay (Replay &replay, float timingScale=1.F) -> std::map< float, float >
 
auto GenerateComboListForReplay (Replay &replay, float timingScale=1.F) -> std::vector< PlayerStageStats::Combo_t >
 
void EnableCustomScoringFunctions ()
 
void DisableCustomScoringFunctions ()
 
bool isCustomScoringFunctionsEnabled ()
 
auto CustomTapScoringFunction (float fOffsetSeconds, TapNoteScore tns, float timingScale) -> float
 
auto CustomHoldNoteScoreScoringFunction (HoldNoteScore hns) -> float
 
auto CustomMineScoringFunction () -> float
 
auto CustomTotalWifePointsCalculation (TapNoteType tnt) -> float
 
auto CustomOffsetJudgingFunction (float fOffsetSeconds, float timingScale) -> TapNoteScore
 
auto CustomMissWindowFunction () -> float
 
void SetTotalWifePointsCalcFunction (const LuaReference &ref)
 
void SetMineScoringFunction (const LuaReference &ref)
 
void SetHoldNoteScoringFunction (const LuaReference &ref)
 
void SetTapScoringFunction (const LuaReference &ref)
 
void SetOffsetJudgingFunction (const LuaReference &ref)
 
void SetMissWindowFunction (const LuaReference &ref)
 
void PushSelf (lua_State *L)
 Lua.
 

Static Public Member Functions

static TapNoteScore GetTapNoteScoreForReplay (float fNoteOffset, float timingScale=1.F)
 

Member Function Documentation

◆ CustomHoldNoteScoreScoringFunction()

auto ReplayManager::CustomHoldNoteScoreScoringFunction ( HoldNoteScore  hns) -> float

How much a hold note score is worth (a dropped hold) lua function params: holdnotescore (str) return: float

◆ CustomMineScoringFunction()

auto ReplayManager::CustomMineScoringFunction ( ) -> float

How much a mine hit is worth lua function params: none return: float

◆ CustomMissWindowFunction()

auto ReplayManager::CustomMissWindowFunction ( ) -> float

The time in seconds at which a note is not judged. If a note is further than this distance from a tap, it is not judged. If for some reason an assigned offset is outside this window, it is a miss.

◆ CustomOffsetJudgingFunction()

auto ReplayManager::CustomOffsetJudgingFunction ( float  fOffsetSeconds,
float  timingScale 
) -> TapNoteScore

The TapNoteScore awarded to a particular offset lua function params: offset (in seconds), timing return: tapnotescore (str)

◆ CustomTapScoringFunction()

auto ReplayManager::CustomTapScoringFunction ( float  fOffsetSeconds,
TapNoteScore  tns,
float  timingScale 
) -> float

How much a particular judgment or offset is worth lua function params: tap offset, tapnotescore (str), timingScale (1.0 for j4) return: float

◆ CustomTotalWifePointsCalculation()

auto ReplayManager::CustomTotalWifePointsCalculation ( TapNoteType  tnt) -> float

How much each note is worth at maximum lua function params: tapnotetype (str) return: float

◆ InitReplayPlaybackForScore()

Replay * ReplayManager::InitReplayPlaybackForScore ( HighScore hs,
float  timingScale = 1.F,
int  startRow = 0 
)

The use of this is for scores which are about to viewed via eval or ingame replay. It runs all processing on the replay.


The documentation for this class was generated from the following files: