keep track of last played for each song
add metric: ScreenRanking::ShowOnlyMostRecentScores
This commit is contained in:
@@ -139,6 +139,12 @@ void HighScoreList::AddHighScore( HighScore hs, int &iIndexOut, bool bIsMachine
|
||||
}
|
||||
}
|
||||
|
||||
void HighScoreList::IncrementPlayCount( DateTime dtLastPlayed )
|
||||
{
|
||||
dtLastPlayed = dtLastPlayed;
|
||||
iNumTimesPlayed++;
|
||||
}
|
||||
|
||||
const HighScore& HighScoreList::GetTopScore() const
|
||||
{
|
||||
if( vHighScores.empty() )
|
||||
@@ -180,6 +186,10 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList )
|
||||
{
|
||||
p->GetValue( iNumTimesPlayed );
|
||||
}
|
||||
else if( p->m_sName == "LastPlayed" )
|
||||
{
|
||||
p->GetValue( dtLastPlayed );
|
||||
}
|
||||
else if( p->m_sName == "HighScore" )
|
||||
{
|
||||
vHighScores.resize( vHighScores.size()+1 );
|
||||
|
||||
Reference in New Issue
Block a user