Added IsSongLocked() Lua binding.

To be honest, I'm wondering if this should be in SongManager
instead of or as well as UnlockManager.
This commit is contained in:
Jason Felds
2011-09-16 23:08:50 -04:00
parent 8d6ccfb098
commit 75d1c672c8
4 changed files with 14 additions and 0 deletions
+8
View File
@@ -956,6 +956,13 @@ public:
lua_pushnumber( L, fScores[Enum::Check<UnlockRequirement>(L, 2)] );
return 1;
}
static int IsSongLocked( T* p, lua_State *L )
{
Song *pSong = Luna<Song>::check(L,1);
lua_pushnumber( L, UNLOCKMAN->SongIsLocked(pSong));
return 1;
}
LunaUnlockManager()
{
@@ -973,6 +980,7 @@ public:
ADD_METHOD( PreferUnlockEntryID );
ADD_METHOD( UnlockEntryID );
ADD_METHOD( UnlockEntryIndex );
ADD_METHOD( IsSongLocked );
//ADD_METHOD( UnlockSong );
//ADD_METHOD( GetUnlocksByType );
}