Add GetGradeForTrail().
This commit is contained in:
@@ -679,6 +679,14 @@ Grade ProfileManager::GetGradeForSteps( const Song *pSong, const Style *st, Prof
|
||||
return Grade_NoData;
|
||||
}
|
||||
|
||||
Grade ProfileManager::GetGradeForTrail( const Course *pCourse, const Style *st, ProfileSlot slot, Difficulty dc ) const
|
||||
{
|
||||
const Trail *pTrail = pCourse->GetTrail( st->m_StepsType, dc );
|
||||
|
||||
if( pTrail && IsPersistentProfile(slot) )
|
||||
return GetProfile( slot )->GetCourseHighScoreList( pCourse, pTrail ).HighGrade;
|
||||
return Grade_NoData;
|
||||
}
|
||||
|
||||
//
|
||||
// Course stats
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
//
|
||||
void AddCourseScore( const Course* pCourse, const Trail* pTrail, PlayerNumber pn, const HighScore &hs, int &iPersonalIndexOut, int &iMachineIndexOut );
|
||||
void IncrementCoursePlayCount( const Course* pCourse, const Trail* pTrail, PlayerNumber pn );
|
||||
|
||||
Grade GetGradeForTrail( const Course *pCourse, const Style *st, ProfileSlot slot, Difficulty dc ) const;
|
||||
//
|
||||
// Category stats
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user