Skip to content

Commit

Permalink
Added Profile:GetTotalDancePoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzentun committed Dec 19, 2014
1 parent 090d63e commit c905965
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Docs/Changelog_sm5.txt
Expand Up @@ -4,6 +4,10 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes
from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
________________________________________________________________________________

2014/12/18
----------
* [Profile] GetTotalDancePoints added. [kyzentun]

2014/12/10
----------
* [EditMode] Play whole song and play from current beat will now play until
Expand Down
1 change: 1 addition & 0 deletions Docs/Luadoc/Lua.xml
Expand Up @@ -1220,6 +1220,7 @@
<Function name='GetSongsPercentComplete'/>
<Function name='GetSongsPossible'/>
<Function name='GetTotalCaloriesBurned'/>
<Function name='GetTotalDancePoints'/>
<Function name='GetTotalGameplaySeconds'/>
<Function name='GetTotalHands'/>
<Function name='GetTotalHolds'/>
Expand Down
3 changes: 3 additions & 0 deletions Docs/Luadoc/LuaDocumentation.xml
Expand Up @@ -3536,6 +3536,9 @@ save yourself some time, copy this for undocumented things:
<Function name='GetTotalCaloriesBurned' return='float' arguments=''>
Return the total number of calories burned.
</Function>
<Function name='GetTotalDancePoints' return='int' arguments=''>
Returns the number of dance points earned.
</Function>
<Function name='GetTotalHands' return='int' arguments=''>
Returns the number of Hands stepped on.
</Function>
Expand Down
2 changes: 2 additions & 0 deletions src/Profile.cpp
Expand Up @@ -2603,6 +2603,7 @@ class LunaProfile: public Luna<Profile>
static int GetTotalMines( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iTotalMines ); return 1; }
static int GetTotalHands( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iTotalHands ); return 1; }
static int GetTotalLifts( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iTotalLifts ); return 1; }
DEFINE_METHOD(GetTotalDancePoints, m_iTotalDancePoints);
static int GetUserTable( T* p, lua_State *L ) { p->m_UserTable.PushSelf(L); return 1; }
static int GetLastPlayedSong( T* p, lua_State *L )
{
Expand Down Expand Up @@ -2688,6 +2689,7 @@ class LunaProfile: public Luna<Profile>
ADD_METHOD( GetTotalMines );
ADD_METHOD( GetTotalHands );
ADD_METHOD( GetTotalLifts );
ADD_METHOD( GetTotalDancePoints );
ADD_METHOD( GetUserTable );
ADD_METHOD( GetLastPlayedSong );
ADD_METHOD( GetLastPlayedCourse );
Expand Down

0 comments on commit c905965

Please sign in to comment.