add HighScore:GetGrade() Lua binding.

This commit is contained in:
AJ Kelly
2010-06-19 00:41:27 -05:00
parent ee5997e999
commit 286c3a565d
2 changed files with 18 additions and 3 deletions
+13
View File
@@ -9,6 +9,19 @@ Not all changes are documented, for various reasons.
supported but exist anyways.)
_____________________________________________________________________________
20100619
--------
* [HighScore] add GetGrade() Lua binding.
20100618
--------
* Allow RShift+Print Screen to take uncompressed screenshots.
20100614
--------
* Attempt to fix screenshot numbering bug. Seems to work, if testing is
any indication.
20100612
--------
* sm4svn r28359-r28364. [Chris Danford]
+4 -2
View File
@@ -91,7 +91,7 @@ XNode *HighScoreImpl::CreateNode() const
pNode->AppendChild( "Grade", GradeToString(grade) );
pNode->AppendChild( "Score", iScore );
pNode->AppendChild( "PercentDP", fPercentDP );
pNode->AppendChild( "SurviveSeconds", fSurviveSeconds );
pNode->AppendChild( "SurviveSeconds", fSurviveSeconds );
pNode->AppendChild( "Modifiers", sModifiers );
pNode->AppendChild( "DateTime", dateTime.GetString() );
pNode->AppendChild( "PlayerGuid", sPlayerGuid );
@@ -143,7 +143,7 @@ void HighScoreImpl::LoadFromNode( const XNode *pNode )
pNode->GetChildValue( "LifeRemainingSeconds", fLifeRemainingSeconds );
pNode->GetChildValue( "Disqualified", bDisqualified);
/* Validate input. */
// Validate input.
grade = clamp( grade, Grade_Tier01, Grade_Failed );
}
@@ -436,6 +436,7 @@ public:
rv.PushSelf(L);
return 1;
}
DEFINE_METHOD( GetGrade, GetGrade() )
LunaHighScore()
{
@@ -450,6 +451,7 @@ public:
ADD_METHOD( GetTapNoteScore );
ADD_METHOD( GetHoldNoteScore );
ADD_METHOD( GetRadarValues );
ADD_METHOD( GetGrade );
}
};