diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 0dff34f132..451d6b9628 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -12,6 +12,7 @@ StepMania 5.0 $next | 20111xxx ---------- * [PlayerOptions] Added IsEasierForSongAndSteps(Song,Steps,PlayerNumber) and IsEasierForCourseAndTrail(Course, Trail) Lua bindings. [AJ] +* [PlayerState] Added GetSuperMeterLevel() Lua binding. [AJ] 2011/11/28 ---------- diff --git a/src/PlayerState.cpp b/src/PlayerState.cpp index 3631e14f6d..18194cdc59 100644 --- a/src/PlayerState.cpp +++ b/src/PlayerState.cpp @@ -257,6 +257,7 @@ public: return 1; } DEFINE_METHOD( GetHealthState, m_HealthState ); + DEFINE_METHOD( GetSuperMeterLevel, m_fSuperMeter ); LunaPlayerState() { @@ -269,6 +270,7 @@ public: ADD_METHOD( GetCurrentPlayerOptions ); ADD_METHOD( GetSongPosition ); ADD_METHOD( GetHealthState ); + ADD_METHOD( GetSuperMeterLevel ); } }; diff --git a/src/PlayerState.h b/src/PlayerState.h index c8c059b66e..9f3181d41c 100644 --- a/src/PlayerState.h +++ b/src/PlayerState.h @@ -53,10 +53,10 @@ public: // Music statistics: SongPosition m_Position; - + const SongPosition &GetDisplayedPosition() const; const TimingData &GetDisplayedTiming() const; - + /** * @brief Holds a vector sorted by real beat, the beat that would be displayed * in the NoteField (because they are affected by scroll segments), and