add LifeMeter binding in ScreenHowToPlay and ScreenGameplay

remove GetPlayerInfo binding (currently unused)
This commit is contained in:
Chris Danford
2007-05-29 21:19:38 +00:00
parent e968fe542f
commit 92d3778e29
6 changed files with 58 additions and 6 deletions
+24
View File
@@ -325,6 +325,30 @@ void ScreenHowToPlay::DrawPrimitives()
}
}
// lua start
#include "LuaBinding.h"
class LunaScreenHowToPlay: public Luna<ScreenHowToPlay>
{
public:
static int GetLifeMeter( T* p, lua_State *L )
{
//PlayerNumber pn = Enum::Check<PlayerNumber>( L, 1 );
p->m_pLifeMeterBar->PushSelf( L );
return 1;
}
LunaScreenHowToPlay()
{
ADD_METHOD( GetLifeMeter );
}
};
LUA_REGISTER_DERIVED_CLASS( ScreenHowToPlay, ScreenAttract )
// lua end
/*
* (c) 2001-2004 Chris Danford, Thad Ward
* All rights reserved.