Refactored code for writing #SONG entries in CourseWriterCRS

Added method for writing #SONGSELECT entries
Added new boolean flag bUseSongSelect to CourseEntry
Added new function StringToSongSort()
Renamed "LIVES" to "GAINLIVES"
This commit is contained in:
Michael Votaw
2024-03-06 01:45:26 -08:00
committed by teejusb
parent be87de401a
commit 84553d4a50
5 changed files with 214 additions and 87 deletions
+4
View File
@@ -39,16 +39,20 @@ enum SongSort
SongSort_TopGrades,
SongSort_LowestGrades,
NUM_SongSort,
SongSort_Invalid,
};
/** @brief Loop through the various Song Sorts. */
#define FOREACH_SongSort( i ) FOREACH_ENUM( SongSort, i )
const RString& SongSortToString( SongSort ss );
const RString& SongSortToLocalizedString( SongSort ss );
SongSort StringToSongSort( const RString& ss );
class CourseEntry
{
public:
bool bSecret; // show "??????" instead of an exact song
bool bUseSongSelect; // if true, this entry was created from a #SONGSELECT entry, instead of a #SONG entry
// filter criteria, applied from top to bottom
SongID songID; // don't filter if unset