[Song] Add ShowInDemonstrationAndRanking() Lua binding.

This commit is contained in:
AJ Kelly
2011-08-19 15:01:21 -05:00
parent 216ca11095
commit dc456b0e07
3 changed files with 28 additions and 33 deletions
+7 -1
View File
@@ -1668,7 +1668,7 @@ public:
lua_pushboolean(L, p->IsTutorial());
return 1;
}
static int IsEnabled( T* p, lua_State *L )
static int IsEnabled( T* p, lua_State *L )
{
lua_pushboolean(L, p->GetEnabled());
return 1;
@@ -1783,6 +1783,11 @@ public:
lua_pushboolean(L, p->NormallyDisplayed());
return 1;
}
static int ShowInDemonstrationAndRanking( T* p, lua_State *L )
{
lua_pushboolean(L, p->ShowInDemonstrationAndRanking());
return 1;
}
static int GetFirstSecond(T* p, lua_State *L)
{
lua_pushnumber(L, p->GetFirstSecond());
@@ -1891,6 +1896,7 @@ public:
ADD_METHOD( IsDisplayBpmSecret );
ADD_METHOD( IsDisplayBpmConstant );
ADD_METHOD( IsDisplayBpmRandom );
ADD_METHOD( ShowInDemonstrationAndRanking );
}
};