add Lua method

This commit is contained in:
Chris Danford
2005-04-26 03:32:30 +00:00
parent 4f23083ebc
commit 416ed7786f
+2
View File
@@ -1997,6 +1997,7 @@ public:
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 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; }
static void Register(lua_State *L)
{
@@ -2028,6 +2029,7 @@ public:
ADD_METHOD( IsExtraStage )
ADD_METHOD( IsExtraStage2 )
ADD_METHOD( GetEasiestStepsDifficulty )
ADD_METHOD( IsEventMode )
Luna<T>::Register( L );