save time, machineGuid in HighScore
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user