add Lua bindings

This commit is contained in:
Chris Danford
2005-02-23 05:02:28 +00:00
parent 94f87f9b58
commit 6f6ef25d1d
4 changed files with 20 additions and 8 deletions
+2
View File
@@ -337,11 +337,13 @@ public:
LunaSteps() { LUA->Register( Register ); }
static int GetStepsType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_StepsType ); return 1; }
static int GetDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->GetDifficulty() ); return 1; }
static int GetDescription( T* p, lua_State *L ) { lua_pushstring(L, p->GetDescription() ); return 1; }
static void Register(lua_State *L)
{
ADD_METHOD( GetStepsType )
ADD_METHOD( GetDifficulty )
ADD_METHOD( GetDescription )
Luna<T>::Register( L );
}