[Song] add IsDisplayBpmRandom Lua binding

This commit is contained in:
AJ Kelly
2011-02-01 15:05:07 -06:00
parent a69a5b540d
commit f67bf3bf2e
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -1553,6 +1553,11 @@ public:
lua_pushboolean( L, temp.BpmIsConstant() );
return 1;
}
static int IsDisplayBpmRandom( T* p, lua_State *L )
{
lua_pushboolean( L, p->m_DisplayBPMType == Song::DISPLAY_RANDOM );
return 1;
}
LunaSong()
{
@@ -1601,6 +1606,7 @@ public:
ADD_METHOD( GetDisplayBpms );
ADD_METHOD( IsDisplayBpmSecret );
ADD_METHOD( IsDisplayBpmConstant );
ADD_METHOD( IsDisplayBpmRandom );
}
};