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:
+15
-2
@@ -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 );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user