Game bindings

This commit is contained in:
Glenn Maynard
2005-06-25 03:30:20 +00:00
parent 82e418916a
commit 2f3648d05c
3 changed files with 28 additions and 1 deletions
+19
View File
@@ -115,6 +115,25 @@ TapNoteScore Game::MapTapNoteScore( TapNoteScore tns ) const
}
}
// lua start
#include "LuaBinding.h"
class LunaGame: public Luna<Game>
{
public:
LunaGame() { LUA->Register( Register ); }
static int GetName( T* p, lua_State *L ) { lua_pushstring( L, p->m_szName ); return 1; }
static void Register( Lua *L )
{
ADD_METHOD( GetName )
Luna<T>::Register( L );
}
};
LUA_REGISTER_CLASS( Game )
// lua end
/*
* (c) 2001-2002 Chris Danford
* All rights reserved.