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

Public Member Functions

 Replay (const HighScore *hs)
 
auto GetBasicPath () const -> const std::string
 
auto GetFullPath () const -> const std::string
 
auto GetInputPath () const -> const std::string
 
auto GetOnlinePath () const -> const std::string
 
auto GetOffsetVector () const -> const std::vector< float > &
 
auto GetCopyOfOffsetVector () const -> std::vector< float >
 
void SetOffsetVector (const std::vector< float > &v)
 
auto GetNoteRowVector () const -> const std::vector< int > &
 
auto GetCopyOfNoteRowVector () const -> std::vector< int >
 
void SetNoteRowVector (const std::vector< int > &v)
 
auto GetTrackVector () const -> const std::vector< int > &
 
auto GetCopyOfTrackVector () const -> std::vector< int >
 
void SetTrackVector (const std::vector< int > &v)
 
auto GetTapNoteTypeVector () const -> const std::vector< TapNoteType > &
 
auto GetCopyOfTapNoteTypeVector () const -> std::vector< TapNoteType >
 
void SetTapNoteTypeVector (const std::vector< TapNoteType > &v)
 
auto GetHoldReplayDataVector () const -> const std::vector< HoldReplayResult > &
 
auto GetCopyOfHoldReplayDataVector () const -> std::vector< HoldReplayResult >
 
void SetHoldReplayDataVector (const std::vector< HoldReplayResult > &v)
 
auto GetMineReplayDataVector () const -> const std::vector< MineReplayResult > &
 
auto GetCopyOfMineReplayDataVector () const -> std::vector< MineReplayResult >
 
void SetMineReplayDataVector (const std::vector< MineReplayResult > &v)
 
auto GetOnlineReplayTimestampVector () const -> const std::vector< float > &
 
auto GetCopyOfOnlineReplayTimestampVector () const -> std::vector< float >
 
void SetOnlineReplayTimestampVector (const std::vector< float > &v)
 
auto GetInputDataVector () const -> const std::vector< InputDataEvent > &
 
auto GetCopyOfInputDataVector () const -> std::vector< InputDataEvent >
 
void SetInputDataVector (const std::vector< InputDataEvent > &v)
 
auto GetMissReplayDataVector () const -> const std::vector< MissReplayResult > &
 
auto GetCopyOfMissReplayDataVector () const -> std::vector< MissReplayResult >
 
void SetMissReplayDataVector (const std::vector< MissReplayResult > &v)
 
auto GetReplaySnapshotMap () const -> const std::map< int, ReplaySnapshot > &
 
auto GetCopyOfReplaySnapshotMap () const -> std::map< int, ReplaySnapshot >
 
void SetReplaySnapshotMap (const std::map< int, ReplaySnapshot > &m)
 
auto GetJudgeInfo () -> JudgeInfo &
 
auto GetCopyOfJudgeInfo () const -> JudgeInfo
 
void SetJudgeInfo (const JudgeInfo &ji)
 
auto GetScoreKey () const -> std::string
 
void SetScoreKey (std::string &key)
 
auto GetChartKey () const -> std::string
 
void SetChartKey (std::string &key)
 
auto GetMusicRate () const -> float
 
void SetMusicRate (float f)
 
auto GetSongOffset () const -> float
 
void SetSongOffset (float f)
 
auto GetGlobalOffset () const -> float
 
void SetGlobalOffset (float f)
 
auto GetRngSeed () const -> int
 
void SetRngSeed (int seed)
 
auto GetModifiers () const -> std::string
 
void SetModifiers (std::string &modstr)
 
void SetUseReprioritizedNoteRows (bool b)
 
auto UsingReprioritizedNoteRows () -> bool
 
auto GetReprioritizedMissData () const -> const std::vector< MissReplayResult > &
 
auto GetCopyOfReprioritizedMissData () const -> std::vector< MissReplayResult >
 
void SetReprioritizedMissData (const std::vector< MissReplayResult > &v)
 
auto GetReprioritizedHoldData () const -> const std::vector< HoldReplayResult > &
 
auto GetCopyOfReprioritizedHoldData () const -> std::vector< HoldReplayResult >
 
void SetReprioritizedHoldData (const std::vector< HoldReplayResult > &v)
 
auto GetReprioritizedMineData () const -> const std::vector< MineReplayResult > &
 
auto GetCopyOfReprioritizedMineData () const -> std::vector< MineReplayResult >
 
void SetReprioritizedMineData (const std::vector< MineReplayResult > &v)
 
auto GetRelevantMissData () const -> const std::vector< MissReplayResult > &
 
auto GetRelevantHoldData () const -> const std::vector< HoldReplayResult > &
 
auto GetRelevantMineData () const -> const std::vector< MineReplayResult > &
 
ReplayType GetReplayType () const
 
auto HasColumnData () const -> bool
 true for V2 and InputData
 
auto WriteReplayData () -> bool
 
auto WriteInputData () -> bool
 
auto LoadReplayData () -> bool
 
auto HasReplayData () -> bool
 
auto HasWrittenReplayData () -> bool
 
auto FillInBlanksForInputData () -> bool
 
auto GeneratePrimitiveVectors () -> bool
 
auto GenerateNoterowsFromTimestamps () -> bool
 Generate Noterow vector using online timestamp replay format.
 
auto GenerateInputData () -> bool
 Generate InputData using any ReplayData.
 
auto ReprioritizeInputData () -> bool
 
auto GeneratePlaybackEvents (int startRow=0) -> std::map< int, std::vector< PlaybackEvent > >
 Generate events used for playing back replay in gameplay.
 
auto GenerateJudgeInfoAndReplaySnapshots (int startingRow=0, float timingScale=1.F) -> bool
 For Stats and ReplaySnapshots.
 
auto GenerateDroppedHoldColumnsToRowsMap (int startRow=0) -> std::map< int, std::set< int > >
 
auto GenerateDroppedHoldRowsToColumnsMap (int startRow=0) -> std::map< int, std::set< int > >
 
void ValidateOffsets ()
 Offsets can be really weird - Remove all impossible offsets.
 
auto ValidateInputDataNoterows () -> bool
 
void VerifyInputDataAndReplayData ()
 
void VerifyGeneratedInputDataMatchesReplayData ()
 
auto GetHighScore () -> HighScore *
 
auto GetSteps () -> Steps *
 
auto GetNoteData (Steps *pSteps=nullptr, bool bTransform=true) -> NoteData
 
auto GetTimingData () -> TimingData *
 
auto GetStyle () -> const Style *
 
auto GetReplaySnapshotForNoterow (int row) -> std::shared_ptr< ReplaySnapshot >
 
auto CanSafelyTransformNoteData () -> bool
 A check to see if the Replay has an RNG seed, if it uses shuffle.
 
bool IsOnlineScore () const
 
void Unload ()
 
auto SetHighScoreMods () -> void
 
void PushSelf (lua_State *L)
 Lua.
 

Member Function Documentation

◆ FillInBlanksForInputData()

auto Replay::FillInBlanksForInputData ( ) -> bool

Corrects missing fields for InputData. Will only work for InputData backed by loaded NoteData

◆ GenerateDroppedHoldColumnsToRowsMap()

auto Replay::GenerateDroppedHoldColumnsToRowsMap ( int  startRow = 0) -> std::map<int, std::set<int>>

Returns map of columns to a set of rows which are dropped See which columns have drops using this

◆ GenerateDroppedHoldRowsToColumnsMap()

auto Replay::GenerateDroppedHoldRowsToColumnsMap ( int  startRow = 0) -> std::map<int, std::set<int>>

Returns a map of rows to a set of columns which are dropped See which rows have drops using this

◆ GeneratePrimitiveVectors()

auto Replay::GeneratePrimitiveVectors ( ) -> bool

Generate ReplayV2 Data from InputData. The main use of this is for rescoring the classic way

◆ ReprioritizeInputData()

auto Replay::ReprioritizeInputData ( ) -> bool

Used for recalculating notedata nearest noterows. Uses a different algorithm than "closest note" to rejudge the data.

◆ SetHighScoreMods()

auto Replay::SetHighScoreMods ( ) -> void

Setting the mod string is handled separately. Use this to set mods, as long as a scorekey is given.

◆ ValidateInputDataNoterows()

auto Replay::ValidateInputDataNoterows ( ) -> bool

Noterows for Replay/Input Data can just ... shift... This is only a bit uncommon. It can happen if you simply shift an entire chart forward or backwards in noterows only. So this function tries to correct data by shifting it to match the existing notedata. If this function returns false, reloading InputData is recommended.

◆ VerifyGeneratedInputDataMatchesReplayData()

void Replay::VerifyGeneratedInputDataMatchesReplayData ( )

Used to validate that converting replay data to input data produces correct and equal output vs replay data alone. This is not meant to ever be used outside of debug.

◆ VerifyInputDataAndReplayData()

void Replay::VerifyInputDataAndReplayData ( )

Used to validate that converting input data to replay data produces correct and equal output vs replay data alone. This is not meant to ever be used outside of debug.

◆ WriteInputData()

auto Replay::WriteInputData ( ) -> bool

compression


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