lua: GetNumPlayersEnabled, PlayerUsingBothSides
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user