save time, machineGuid in HighScore

This commit is contained in:
Chris Danford
2004-04-18 19:49:45 +00:00
parent d62369baf1
commit 049a251ebb
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -54,6 +54,8 @@ XNode* HighScore::CreateNode() const
pNode->AppendChild( "PercentDP", fPercentDP );
pNode->AppendChild( "SurviveSeconds", fSurviveSeconds );
pNode->AppendChild( "Modifiers", sModifiers );
pNode->AppendChild( "Time", time );
pNode->AppendChild( "MachineGuid", sMachineGuid );
return pNode;
}
@@ -71,6 +73,8 @@ void HighScore::LoadFromNode( const XNode* pNode )
else if( (*child)->name == "PercentDP" ) (*child)->GetValue( fPercentDP );
else if( (*child)->name == "SurviveSeconds" ) (*child)->GetValue( fSurviveSeconds );
else if( (*child)->name == "Modifiers" ) (*child)->GetValue( sModifiers );
else if( (*child)->name == "Time" ) (*child)->GetValue( (int&)time );
else if( (*child)->name == "MachineGuid" ) (*child)->GetValue( sMachineGuid );
}
/* Validate input. */