[SongManager] Added GetCourseGroupNames Lua binding.
This commit is contained in:
@@ -1890,6 +1890,14 @@ public:
|
||||
|
||||
DEFINE_METHOD( ShortenGroupName, ShortenGroupName( SArg(1) ) )
|
||||
|
||||
static int GetCourseGroupNames( T* p, lua_State *L )
|
||||
{
|
||||
vector<RString> v;
|
||||
p->GetCourseGroupNames( v );
|
||||
LuaHelpers::CreateTableFromArray<RString>( v, L );
|
||||
return 1;
|
||||
}
|
||||
|
||||
LunaSongManager()
|
||||
{
|
||||
ADD_METHOD( GetAllSongs );
|
||||
@@ -1898,6 +1906,7 @@ public:
|
||||
ADD_METHOD( FindCourse );
|
||||
ADD_METHOD( GetRandomSong );
|
||||
ADD_METHOD( GetRandomCourse );
|
||||
ADD_METHOD( GetCourseGroupNames );
|
||||
ADD_METHOD( GetNumSongs );
|
||||
ADD_METHOD( GetNumUnlockedSongs );
|
||||
ADD_METHOD( GetNumSelectableAndUnlockedSongs );
|
||||
|
||||
Reference in New Issue
Block a user