[SongManager] Add SongToPreferredSortSectionName(song), WasLoadedFromAdditionalSongs(song), and WasLoadedFromAdditionalCourses(course) Lua bindings
This commit is contained in:
@@ -16,6 +16,8 @@ StepMania 5.0 $next | 2011????
|
|||||||
GetPopularSongs() Lua bindings. [AJ]
|
GetPopularSongs() Lua bindings. [AJ]
|
||||||
* [SongManager] Added GetPreferredSortSongs(), GetPreferredSortCourses(courseType,bIncludeAutogen),
|
* [SongManager] Added GetPreferredSortSongs(), GetPreferredSortCourses(courseType,bIncludeAutogen),
|
||||||
and GetPopularCourses(courseType) Lua bindings. [AJ]
|
and GetPopularCourses(courseType) Lua bindings. [AJ]
|
||||||
|
* [SongManager] Add SongToPreferredSortSectionName(song), WasLoadedFromAdditionalSongs(song),
|
||||||
|
and WasLoadedFromAdditionalCourses(course) Lua bindings. [AJ]
|
||||||
|
|
||||||
2011/08/23
|
2011/08/23
|
||||||
----------
|
----------
|
||||||
|
|||||||
+21
-5
@@ -1987,6 +1987,24 @@ public:
|
|||||||
LuaHelpers::CreateTableFromArray<Course*>( v, L );
|
LuaHelpers::CreateTableFromArray<Course*>( v, L );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
static int SongToPreferredSortSectionName( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
const Song* pSong = Luna<Song>::check(L,1);
|
||||||
|
lua_pushstring(L, p->SongToPreferredSortSectionName(pSong));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
static int WasLoadedFromAdditionalSongs( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
const Song* pSong = Luna<Song>::check(L,1);
|
||||||
|
lua_pushboolean(L, p->WasLoadedFromAdditionalSongs(pSong));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
static int WasLoadedFromAdditionalCourses( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
const Course* pCourse = Luna<Course>::check(L,1);
|
||||||
|
lua_pushboolean(L, p->WasLoadedFromAdditionalCourses(pCourse));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
LunaSongManager()
|
LunaSongManager()
|
||||||
{
|
{
|
||||||
@@ -2025,11 +2043,9 @@ public:
|
|||||||
ADD_METHOD( DoesCourseGroupExist );
|
ADD_METHOD( DoesCourseGroupExist );
|
||||||
ADD_METHOD( GetPopularSongs );
|
ADD_METHOD( GetPopularSongs );
|
||||||
ADD_METHOD( GetPopularCourses );
|
ADD_METHOD( GetPopularCourses );
|
||||||
//ADD_METHOD( GetSongsOfCurrentGame );
|
ADD_METHOD( SongToPreferredSortSectionName );
|
||||||
//ADD_METHOD( GetAllSongsOfCurrentGame );
|
ADD_METHOD( WasLoadedFromAdditionalSongs );
|
||||||
//ADD_METHOD( SongToPreferredSortSectionName );
|
ADD_METHOD( WasLoadedFromAdditionalCourses );
|
||||||
//ADD_METHOD( WasLoadedFromAdditionalSongs );
|
|
||||||
//ADD_METHOD( WasLoadedFromAdditionalCourses );
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user