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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user