working on SSelectProfile
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user