add ScreenClassExists

This commit is contained in:
Glenn Maynard
2007-05-09 04:43:47 +00:00
parent 7dbd80ceaa
commit 538327e7f3
+2
View File
@@ -857,6 +857,7 @@ public:
} }
static int SystemMessage( T* p, lua_State *L ) { p->SystemMessage( SArg(1) ); return 0; } static int SystemMessage( T* p, lua_State *L ) { p->SystemMessage( SArg(1) ); return 0; }
static int ScreenIsPrepped( T* p, lua_State *L ) { lua_pushboolean( L, ScreenManagerUtil::ScreenIsPrepped( SArg(1) ) ); return 1; } static int ScreenIsPrepped( T* p, lua_State *L ) { lua_pushboolean( L, ScreenManagerUtil::ScreenIsPrepped( SArg(1) ) ); return 1; }
static int ScreenClassExists( T* p, lua_State *L ) { lua_pushboolean( L, g_pmapRegistrees->find( SArg(1) ) != g_pmapRegistrees->end() ); return 1; }
LunaScreenManager() LunaScreenManager()
{ {
@@ -864,6 +865,7 @@ public:
ADD_METHOD( GetTopScreen ); ADD_METHOD( GetTopScreen );
ADD_METHOD( SystemMessage ); ADD_METHOD( SystemMessage );
ADD_METHOD( ScreenIsPrepped ); ADD_METHOD( ScreenIsPrepped );
ADD_METHOD( ScreenClassExists );
} }
}; };