if you fail to reach the top the more you break the more you drop. try it again. try it again.

This commit is contained in:
Flameshadowxeroshin
2012-07-22 12:05:19 -05:00
parent 2b21a91f91
commit c2bc9d1ff3
3 changed files with 22 additions and 5 deletions
+15 -2
View File
@@ -1619,12 +1619,25 @@ class LunaMusicWheel: public Luna<MusicWheel>
{
public:
static int IsRouletting( T* p, lua_State *L ){ lua_pushboolean( L, p->IsRouletting() ); return 1; }
static int ResetSelection( T* p, lua_State *L ){ lua_pushboolean( L, p->SelectSongOrCourse() ); return 1; }
static int SelectSong( T* p, lua_State *L )
{
if( lua_isnil(L,1) ) { lua_pushboolean( L, false ); return 1; }
else { Song *pS = Luna<Song>::check( L, 1, true ); lua_pushboolean( L, p->SelectSong( pS ) ); }
return 1;
}
static int SelectCourse( T* p, lua_State *L )
{
if( lua_isnil(L,1) ) { lua_pushboolean( L, false ); return 1; }
else { Course *pC = Luna<Course>::check( L, 1, true ); lua_pushboolean( L, p->SelectSong( pC ) ); }
return 1;
}
LunaMusicWheel()
{
ADD_METHOD( IsRouletting );
ADD_METHOD( ResetSelection );
ADD_METHOD( SelectSong );
ADD_METHOD( SelectCourse );
}
};