lua GetTotalNumSongsPlayed
This commit is contained in:
@@ -1693,6 +1693,8 @@ public:
|
|||||||
static int SetGoalSeconds( T* p, lua_State *L ) { p->m_iGoalSeconds = IArg(1); return 0; }
|
static int SetGoalSeconds( T* p, lua_State *L ) { p->m_iGoalSeconds = IArg(1); return 0; }
|
||||||
static int GetCaloriesBurnedToday( T* p, lua_State *L ) { lua_pushnumber(L, p->GetCaloriesBurnedToday() ); return 1; }
|
static int GetCaloriesBurnedToday( T* p, lua_State *L ) { lua_pushnumber(L, p->GetCaloriesBurnedToday() ); return 1; }
|
||||||
static int GetSaved( T* p, lua_State *L ) { p->m_SavedLuaData.PushSelf(L); return 1; }
|
static int GetSaved( T* p, lua_State *L ) { p->m_SavedLuaData.PushSelf(L); return 1; }
|
||||||
|
static int GetTotalNumSongsPlayed( T* p, lua_State *L ) { lua_pushnumber(L, p->GetTotalNumSongsPlayed() ); return 1; }
|
||||||
|
|
||||||
|
|
||||||
static void Register(lua_State *L)
|
static void Register(lua_State *L)
|
||||||
{
|
{
|
||||||
@@ -1706,6 +1708,7 @@ public:
|
|||||||
ADD_METHOD( SetGoalSeconds )
|
ADD_METHOD( SetGoalSeconds )
|
||||||
ADD_METHOD( GetCaloriesBurnedToday )
|
ADD_METHOD( GetCaloriesBurnedToday )
|
||||||
ADD_METHOD( GetSaved )
|
ADD_METHOD( GetSaved )
|
||||||
|
ADD_METHOD( GetTotalNumSongsPlayed )
|
||||||
Luna<T>::Register( L );
|
Luna<T>::Register( L );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user