remove Stats.html

add XML stylesheet for Stats.xml
This commit is contained in:
Chris Danford
2004-07-11 01:58:55 +00:00
parent ec2ed49e2f
commit c301e1eb83
14 changed files with 102 additions and 1626 deletions
+28 -3
View File
@@ -10,12 +10,14 @@
#include "StepsUtil.h"
#include "CourseUtil.h"
#include "TrailUtil.h"
#include "GameState.h"
#include <set>
#include "Foreach.h"
const CString CATALOG_XML = "Catalog.xml";
void SaveCatalogXml( CString sDir )
void SaveCatalogXml()
{
CString fn = sDir + CATALOG_XML;
CString fn = CATALOG_XML_FILE;
LOG->Trace( "Writing %s ...", fn.c_str() );
@@ -87,6 +89,29 @@ void SaveCatalogXml( CString sDir )
}
}
{
XNode* pNode = xml.AppendChild( "DifficultiesToShow" );
set<Difficulty> vDiffs;
GAMESTATE->GetDifficultiesToShow( vDiffs );
for( set<Difficulty>::const_iterator iter = vDiffs.begin(); iter != vDiffs.end(); iter++ )
{
pNode->AppendChild( "Difficulty", DifficultyToString(*iter) );
}
}
{
XNode* pNode = xml.AppendChild( "CourseDifficultiesToShow" );
set<CourseDifficulty> vDiffs;
GAMESTATE->GetCourseDifficultiesToShow( vDiffs );
for( set<CourseDifficulty>::const_iterator iter = vDiffs.begin(); iter != vDiffs.end(); iter++ )
{
pNode->AppendChild( "CourseDifficulty", DifficultyToString(*iter) );
}
}
xml.SaveToFile(fn);
LOG->Trace( "Done." );