expose to Lua

This commit is contained in:
Chris Danford
2005-02-16 17:35:58 +00:00
parent 4e12486bf4
commit 08ba7f4251
+10
View File
@@ -24,6 +24,16 @@ public:
{
ADD_METHOD( GetCurStageStats )
Luna<T>::Register( L );
// Add global singleton if constructed already. If it's not constructed yet,
// then we'll register it later when we reinit Lua just before
// initializing the display.
if( STATSMAN )
{
lua_pushstring(L, "STATSMAN");
STATSMAN->PushSelf( LUA->L );
lua_settable(L, LUA_GLOBALSINDEX);
}
}
};