Add SetScore Lua binding to PlayerStageStats.

This commit is contained in:
Flameshadowxeroshin
2010-09-24 22:43:07 -05:00
parent 8fe4efe6f4
commit a617dbdf2c
+11
View File
@@ -261,6 +261,7 @@ float PlayerStageStats::GetCurMaxPercentDancePoints() const
{
if ( m_iPossibleDancePoints == 0 )
return 0; // div/0
if ( m_iCurPossibleDancePoints == m_iPossibleDancePoints )
@@ -720,6 +721,16 @@ public:
}
return 1;
}
static int SetScore(T* p, lua_State *L )
{
int newScore = lua_tonumber(1, L);
if( newScore >= 0)
{
p->m_iScore = newScore;
return 1;
}
return 0;
}
static int GetRadarPossible( T* p, lua_State *L ) { p->m_radarPossible.PushSelf(L); return 1; }
static int GetRadarActual( T* p, lua_State *L ) { p->m_radarActual.PushSelf(L); return 1; }