Add operator== and operator!= as well as getting all matching steps for a particular song.
This commit is contained in:
@@ -35,6 +35,15 @@ public:
|
||||
}
|
||||
|
||||
bool Matches( const Song *p ) const;
|
||||
bool operator==( const SongCriteria &other ) const
|
||||
{
|
||||
#define X(x) (x == other.x)
|
||||
return X(m_sGroupName) && X(m_bUseSongGenreAllowedList) && X(m_vsSongGenreAllowedList) &&
|
||||
X(m_Selectable) && X(m_bUseSongAllowedList) && X(m_vpSongAllowedList) &&
|
||||
X(m_iStagesForSong) && X(m_Tutorial) && X(m_Locked);
|
||||
#undef X
|
||||
}
|
||||
bool operator!=( const SongCriteria &other ) const { return !operator==( other ); }
|
||||
};
|
||||
|
||||
namespace SongUtil
|
||||
|
||||
Reference in New Issue
Block a user