Skip to content

Commit

Permalink
give lua highscore replaytype access because we'll need it eventually
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 20, 2018
1 parent 020d273 commit 2c12a83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ const RadarValues &HighScore::GetRadarValues() const { return m_Impl->radarValue
float HighScore::GetLifeRemainingSeconds() const { return m_Impl->fLifeRemainingSeconds; }
bool HighScore::GetDisqualified() const { return m_Impl->bDisqualified; }
int HighScore::GetTopScore() const { return m_Impl->TopScore; }
int HighScore::GetReplayType() const { return m_Impl->ReplayType; }

void HighScore::SetName( const string &sName ) { m_Impl->sName = sName; }
void HighScore::SetChartKey( const string &ck) { m_Impl->ChartKey = ck; }
Expand Down Expand Up @@ -1530,6 +1531,7 @@ class LunaHighScore: public Luna<HighScore>
DEFINE_METHOD( GetEtternaValid , GetEtternaValid() )
DEFINE_METHOD( HasReplayData, HasReplayData() )
DEFINE_METHOD( GetChartKey, GetChartKey())
DEFINE_METHOD(GetReplayType, GetReplayType())
LunaHighScore()
{
ADD_METHOD( GetName );
Expand Down Expand Up @@ -1566,6 +1568,7 @@ class LunaHighScore: public Luna<HighScore>
ADD_METHOD( GetTapNoteTypeVector );
ADD_METHOD( GetTapNoteSubTypeVector );
ADD_METHOD( GetChartKey );
ADD_METHOD( GetReplayType );
}
};

Expand Down
1 change: 1 addition & 0 deletions src/HighScore.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ struct HighScore
vector<TapNoteSubType> GetCopyOfTapNoteSubTypeVector() const;
string GetScoreKey() const;
int GetTopScore() const;
int GetReplayType() const;
/**
* @brief Determine how many seconds the player had left in Survival mode.
* @return the number of seconds left. */
Expand Down

0 comments on commit 2c12a83

Please sign in to comment.