From 4edd0c6eb1862d25686b256ab5c71f2cdcc493e2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 11 Sep 2005 01:50:12 +0000 Subject: [PATCH] transitioning to accessing these directly --- stepmania/src/PlayerStageStats.cpp | 8 ++++++++ stepmania/src/ScreenEvaluation.cpp | 1 + 2 files changed, 9 insertions(+) diff --git a/stepmania/src/PlayerStageStats.cpp b/stepmania/src/PlayerStageStats.cpp index e00c67b335..4bfa8d3944 100644 --- a/stepmania/src/PlayerStageStats.cpp +++ b/stepmania/src/PlayerStageStats.cpp @@ -603,6 +603,10 @@ public: static int GetGrade( T* p, lua_State *L ) { lua_pushnumber(L, p->GetGrade()); return 1; } static int GetLessonScoreActual( T* p, lua_State *L ) { lua_pushnumber(L, p->GetLessonScoreActual()); return 1; } static int GetLessonScorePossible( T* p, lua_State *L ) { lua_pushnumber(L, p->GetLessonScorePossible()); return 1; } + static int GetPersonalHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->m_iPersonalHighScoreIndex ); return 1; } + static int GetMachineHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->m_iMachineHighScoreIndex ); return 1; } + static int GetPerDifficultyAward( T* p, lua_State *L ) { lua_pushnumber( L, p->m_pdaToShow ); return 1; } + static int GetPeakComboAward( T* p, lua_State *L ) { lua_pushnumber( L, p->m_pcaToShow ); return 1; } static void Register(lua_State *L) { @@ -614,6 +618,10 @@ public: ADD_METHOD( GetGrade ); ADD_METHOD( GetLessonScoreActual ); ADD_METHOD( GetLessonScorePossible ); + ADD_METHOD( GetPersonalHighScoreIndex ); + ADD_METHOD( GetMachineHighScoreIndex ); + ADD_METHOD( GetPerDifficultyAward ); + ADD_METHOD( GetPeakComboAward ); Luna::Register( L ); } diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 67cb86af99..26f475fe3c 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -1024,6 +1024,7 @@ class LunaScreenEvaluation: public Luna { public: LunaScreenEvaluation() { LUA->Register( Register ); } + // all deprecated static int GetEvalStageStats( T* p, lua_State *L ) { STATSMAN->m_CurStageStats.PushSelf( L ); return 1; } static int GetPersonalHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, STATSMAN->m_CurStageStats.m_player[IArg(1)].m_iPersonalHighScoreIndex ); return 1; } static int GetMachineHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, STATSMAN->m_CurStageStats.m_player[IArg(1)].m_iMachineHighScoreIndex ); return 1; }