From e48100ed4875cdc9b6c02bb7ddcc29d64caf4d5c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 6 May 2005 08:10:39 +0000 Subject: [PATCH] GAMESTATE:IsCourseMode --- stepmania/src/GameState.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index b7b963e58b..04e6eb3af8 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1988,6 +1988,7 @@ public: } static int GetPreferredDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_PreferredDifficulty[IArg(1)] ); return 1; } static int AnyPlayerHasRankingFeats( T* p, lua_State *L ) { lua_pushboolean(L, p->AnyPlayerHasRankingFeats() ); return 1; } + static int IsCourseMode( T* p, lua_State *L ) { lua_pushboolean(L, p->IsCourseMode() ); return 1; } static int GetPlayMode( T* p, lua_State *L ) { lua_pushnumber(L, p->m_PlayMode ); return 1; } static int GetSortOrder( T* p, lua_State *L ) { lua_pushnumber(L, p->m_SortOrder ); return 1; } static int IsGoalComplete( T* p, lua_State *L ) { lua_pushboolean(L, p->IsGoalComplete((PlayerNumber)IArg(1)) ); return 1; } @@ -2023,6 +2024,7 @@ public: ADD_METHOD( GetEditSourceSteps ) ADD_METHOD( GetPreferredDifficulty ) ADD_METHOD( AnyPlayerHasRankingFeats ) + ADD_METHOD( IsCourseMode ) ADD_METHOD( GetPlayMode ) ADD_METHOD( GetSortOrder ) ADD_METHOD( IsGoalComplete )