working on SSelectProfile

This commit is contained in:
Chris Danford
2005-07-07 22:08:05 +00:00
parent df743e9780
commit fcc6c4408a
7 changed files with 315 additions and 2 deletions
+4
View File
@@ -260,6 +260,8 @@ void GameState::Reset()
m_bBackedOutOfFinalStage = false;
m_sEditingProfileID = "";
ApplyCmdline();
}
@@ -2073,6 +2075,7 @@ public:
lua_pushboolean(L, p->GetStageResult(pn)==RESULT_WIN); return 1;
}
static int GetCurrentGame( T* p, lua_State *L ) { const_cast<Game*>(p->GetCurrentGame())->PushSelf( L ); return 1; }
static int GetEditingProfileID( T* p, lua_State *L ) { lua_pushstring(L, p->m_sEditingProfileID ); return 1; }
static void Register(lua_State *L)
{
ADD_METHOD( IsPlayerEnabled )
@@ -2122,6 +2125,7 @@ public:
ADD_METHOD( IsSyncDataChanged )
ADD_METHOD( IsWinner )
ADD_METHOD( GetCurrentGame )
ADD_METHOD( GetEditingProfileID )
Luna<T>::Register( L );