add Lua function IsAnyPlayerUsingMemoryCard

This commit is contained in:
Chris Danford
2004-05-25 06:50:52 +00:00
parent ce41948d95
commit 3421d2d752
+12
View File
@@ -294,3 +294,15 @@ CString MemoryCardManager::GetName( PlayerNumber pn ) const
{
return m_Device[pn].sName;
}
bool IsAnyPlayerUsingMemoryCard()
{
FOREACH_HumanPlayer( pn )
if( MEMCARDMAN->GetCardState(pn) == MEMORY_CARD_STATE_READY )
return true;
return false;
}
#include "LuaFunctions.h"
LuaFunction_NoArgs( IsAnyPlayerUsingMemoryCard, IsAnyPlayerUsingMemoryCard() )