save ProductID in HighScore to track what software a score came from

This commit is contained in:
Chris Danford
2004-05-25 06:50:04 +00:00
parent b7850ef9c2
commit ce41948d95
5 changed files with 10 additions and 2 deletions
+2
View File
@@ -58,6 +58,7 @@ XNode* HighScore::CreateNode() const
pNode->AppendChild( "Time", (int)time );
pNode->AppendChild( "PlayerGuid", sPlayerGuid );
pNode->AppendChild( "MachineGuid", sMachineGuid );
pNode->AppendChild( "ProductID", iProductID );
return pNode;
}
@@ -87,6 +88,7 @@ void HighScore::LoadFromNode( const XNode* pNode )
else if( (*child)->name == "Time" ) (*child)->GetValue( (int&)time );
else if( (*child)->name == "PlayerGuid" ) (*child)->GetValue( sPlayerGuid );
else if( (*child)->name == "MachineGuid" ) (*child)->GetValue( sMachineGuid );
else if( (*child)->name == "ProductID" ) (*child)->GetValue( iProductID );
}
/* Validate input. */