Preparing for a new #TAG, "WARNINGS".
There needs to be a place for warnings on a stepfile without using #TITLE, #SUBTITLE, or #ARTIST. This tag will hopefully be that new place. No version or cache incrementing yet: it's still not complete. Still, what's here shouldn't harm anything.
This commit is contained in:
+32
@@ -98,6 +98,35 @@ public:
|
||||
/** @brief The stringified list of attacks. */
|
||||
vector<RString> m_sAttackString;
|
||||
|
||||
set<RString> GetWarnings() const
|
||||
{
|
||||
return this->chartWarnings;
|
||||
}
|
||||
|
||||
RString GetWarningsToSetString() const
|
||||
{
|
||||
RString ret = "";
|
||||
set<RString> tmp = this->GetWarnings();
|
||||
unsigned index = 0;
|
||||
FOREACHS_CONST(RString, tmp, s)
|
||||
{
|
||||
ret += *s;
|
||||
if (++index < tmp.size())
|
||||
ret += ",";
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void SetWarning(const RString warning)
|
||||
{
|
||||
this->chartWarnings.insert(warning);
|
||||
}
|
||||
|
||||
void EraseWarnings()
|
||||
{
|
||||
this->chartWarnings.clear();
|
||||
}
|
||||
|
||||
void SetFilename( RString fn ) { m_sFilename = fn; }
|
||||
RString GetFilename() const { return m_sFilename; }
|
||||
void SetSavedToDisk( bool b ) { DeAutogen(); m_bSavedToDisk = b; }
|
||||
@@ -194,6 +223,9 @@ private:
|
||||
bool m_bAreCachedRadarValuesJustLoaded;
|
||||
/** @brief The name of the person who created the Steps. */
|
||||
RString m_sCredit;
|
||||
|
||||
/** @brief The list of warnings found in a chart. */
|
||||
set<RString> chartWarnings;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user