simpler Lua boilerplate

This commit is contained in:
Glenn Maynard
2006-09-27 19:47:52 +00:00
parent e0bf203af4
commit 4002071bea
7 changed files with 29 additions and 43 deletions
+5 -6
View File
@@ -1028,14 +1028,13 @@ void ScreenSelectMusic::AfterMusicChange()
class LunaScreenSelectMusic: public Luna<ScreenSelectMusic>
{
public:
LunaScreenSelectMusic() { LUA->Register( Register ); }
static int GetGoToOptions( T* p, lua_State *L ) { lua_pushboolean( L, p->GetGoToOptions() ); return 1; }
static void Register( Lua *L )
{
ADD_METHOD( GetGoToOptions );
Luna<T>::Register( L );
LunaScreenSelectMusic()
{
LUA->Register( Register );
ADD_METHOD( GetGoToOptions );
}
};