bind GetCurrentStage and IsStagePossible

This commit is contained in:
Glenn Maynard
2005-09-08 06:08:08 +00:00
parent 3f379b80f0
commit 0cdc96abd6
+4
View File
@@ -1976,6 +1976,8 @@ public:
static int IsFinalStage( T* p, lua_State *L ) { lua_pushboolean(L, p->IsFinalStage() ); return 1; }
static int IsExtraStage( T* p, lua_State *L ) { lua_pushboolean(L, p->IsExtraStage() ); return 1; }
static int IsExtraStage2( T* p, lua_State *L ) { lua_pushboolean(L, p->IsExtraStage2() ); return 1; }
static int GetCurrentStage( T* p, lua_State *L ) { lua_pushnumber(L, p->GetCurrentStage() ); return 1; }
static int IsStagePossible( T* p, lua_State *L ) { lua_pushboolean(L, p->IsStagePossible((Stage)IArg(1)) ); return 1; }
static int HasEarnedExtraStage( T* p, lua_State *L ) { lua_pushboolean(L, p->HasEarnedExtraStage() ); return 1; }
static int GetEasiestStepsDifficulty( T* p, lua_State *L ){ lua_pushnumber(L, p->GetEasiestStepsDifficulty() ); return 1; }
static int IsEventMode( T* p, lua_State *L ) { lua_pushboolean(L, p->IsEventMode() ); return 1; }
@@ -2050,6 +2052,8 @@ public:
ADD_METHOD( IsFinalStage )
ADD_METHOD( IsExtraStage )
ADD_METHOD( IsExtraStage2 )
ADD_METHOD( GetCurrentStage )
ADD_METHOD( IsStagePossible )
ADD_METHOD( HasEarnedExtraStage )
ADD_METHOD( GetEasiestStepsDifficulty )
ADD_METHOD( IsEventMode )