[PlayerOptions] Added IsEasierForSongAndSteps(Song,Steps,PlayerNumber) and IsEasierForCourseAndTrail(Course, Trail) Lua bindings.
This commit is contained in:
@@ -8,6 +8,11 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $next | 20111xxx
|
StepMania 5.0 $next | 20111xxx
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/11/30
|
||||||
|
----------
|
||||||
|
* [PlayerOptions] Added IsEasierForSongAndSteps(Song,Steps,PlayerNumber) and
|
||||||
|
IsEasierForCourseAndTrail(Course, Trail) Lua bindings. [AJ]
|
||||||
|
|
||||||
2011/11/28
|
2011/11/28
|
||||||
----------
|
----------
|
||||||
* [ScreenGameplay] Add the SurvivalModOverride metric. Let the themer decide
|
* [ScreenGameplay] Add the SurvivalModOverride metric. Let the themer decide
|
||||||
|
|||||||
@@ -882,6 +882,23 @@ void PlayerOptions::ResetPrefs( ResetPrefsType type )
|
|||||||
class LunaPlayerOptions: public Luna<PlayerOptions>
|
class LunaPlayerOptions: public Luna<PlayerOptions>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
static int IsEasierForSongAndSteps( T *p, lua_State *L )
|
||||||
|
{
|
||||||
|
Song* pSong = Luna<Song>::check(L,1);
|
||||||
|
Steps* pSteps = Luna<Steps>::check(L,2);
|
||||||
|
PlayerNumber pn = Enum::Check<PlayerNumber>(L, 3);
|
||||||
|
lua_pushboolean(L, p->IsEasierForSongAndSteps(pSong, pSteps, pn) );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
static int IsEasierForCourseAndTrail( T *p, lua_State *L )
|
||||||
|
{
|
||||||
|
// course, trail
|
||||||
|
Course* pCourse = Luna<Course>::check(L,1);
|
||||||
|
Trail* pTrail = Luna<Trail>::check(L,2);
|
||||||
|
lua_pushboolean(L, p->IsEasierForCourseAndTrail(pCourse, pTrail) );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// NoteSkins
|
// NoteSkins
|
||||||
static int GetNoteSkin( T *p, lua_State *L )
|
static int GetNoteSkin( T *p, lua_State *L )
|
||||||
{
|
{
|
||||||
@@ -1106,6 +1123,9 @@ public:
|
|||||||
|
|
||||||
LunaPlayerOptions()
|
LunaPlayerOptions()
|
||||||
{
|
{
|
||||||
|
ADD_METHOD( IsEasierForSongAndSteps );
|
||||||
|
ADD_METHOD( IsEasierForCourseAndTrail );
|
||||||
|
|
||||||
ADD_METHOD( GetDark );
|
ADD_METHOD( GetDark );
|
||||||
ADD_METHOD( SetDark );
|
ADD_METHOD( SetDark );
|
||||||
ADD_METHOD( GetBlind );
|
ADD_METHOD( GetBlind );
|
||||||
|
|||||||
Reference in New Issue
Block a user