From 47e475a89f6000d73e6f127ad43a9df9e9ed4716 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 15 Feb 2008 09:18:29 +0000 Subject: [PATCH] add Lua binding --- stepmania/src/Song.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index d013ed0491..ff5b2bcc6c 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1406,6 +1406,11 @@ public: lua_pushnil(L); return 1; } + static int GetTimingData( T* p, lua_State *L ) + { + p->m_Timing.PushSelf(L); + return 1; + } LunaSong() { @@ -1428,6 +1433,7 @@ public: ADD_METHOD( IsMarathon ); ADD_METHOD( HasStepsTypeAndDifficulty ); ADD_METHOD( GetOneSteps ); + ADD_METHOD( GetTimingData ); } };