lua: GetNumPlayersEnabled, PlayerUsingBothSides

This commit is contained in:
Glenn Maynard
2004-03-01 02:25:41 +00:00
parent 49df2946a7
commit 05d99b4129
+7
View File
@@ -1425,6 +1425,13 @@ LuaFunction_NoArgs( IsExtraStage, GAMESTATE->IsExtraStage() )
LuaFunction_NoArgs( IsExtraStage2, GAMESTATE->IsExtraStage2() )
LuaFunction_NoArgs( CourseSongIndex, GAMESTATE->GetCourseSongIndex() )
LuaFunction_NoArgs( CurStyle, GAMESTATE->m_CurStyle )
LuaFunction_NoArgs( GetNumPlayersEnabled, GAMESTATE->GetNumPlayersEnabled() )
static bool PlayerUsingBothSides()
{
return GAMESTATE->GetCurrentStyleDef()->m_StyleType==StyleDef::ONE_PLAYER_TWO_CREDITS;
}
LuaFunction_NoArgs( PlayerUsingBothSides, PlayerUsingBothSides() )
/* Return an integer into SONGMAN->m_pSongs. This lets us do input checking, which we
* can't easily do if we return pointers. */