bind Stage

This commit is contained in:
Glenn Maynard
2005-09-08 06:07:38 +00:00
parent 36f30957a6
commit 3f379b80f0
+11
View File
@@ -379,6 +379,17 @@ static const CString StageNames[] = {
"Demo",
};
XToString( Stage, NUM_STAGES );
static void LuaStage(lua_State* L)
{
FOREACH_Stage( st )
{
CString s = StageNames[st];
s.MakeUpper();
LUA->SetGlobal( "STAGE_"+s, st );
}
}
REGISTER_WITH_LUA_FUNCTION( LuaStage );
LuaXToString( Stage );
/*