Add StepsTypeInfo and return the structure rather than having GameManager methods for each piece of data
This commit is contained in:
@@ -1066,7 +1066,7 @@ XNode* Profile::SaveGeneralDataCreateNode() const
|
||||
pGeneralDataNode->AppendChild( "LastDifficulty", DifficultyToString(m_LastDifficulty) );
|
||||
pGeneralDataNode->AppendChild( "LastCourseDifficulty", DifficultyToString(m_LastCourseDifficulty) );
|
||||
if( m_LastStepsType != StepsType_Invalid )
|
||||
pGeneralDataNode->AppendChild( "LastStepsType", GAMEMAN->StepsTypeToString(m_LastStepsType) );
|
||||
pGeneralDataNode->AppendChild( "LastStepsType", GAMEMAN->GetStepsTypeInfo(m_LastStepsType).szName );
|
||||
pGeneralDataNode->AppendChild( m_lastSong.CreateNode() );
|
||||
pGeneralDataNode->AppendChild( m_lastCourse.CreateNode() );
|
||||
pGeneralDataNode->AppendChild( "TotalPlays", m_iTotalPlays );
|
||||
@@ -1577,7 +1577,7 @@ XNode* Profile::SaveCategoryScoresCreateNode() const
|
||||
continue;
|
||||
|
||||
XNode* pStepsTypeNode = pNode->AppendChild( "StepsType" );
|
||||
pStepsTypeNode->AppendAttr( "Type", GameManager::StepsTypeToString(st) );
|
||||
pStepsTypeNode->AppendAttr( "Type", GAMEMAN->GetStepsTypeInfo(st).szName );
|
||||
|
||||
FOREACH_ENUM( RankingCategory,rc )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user