store hash value in Steps for finding equivalent edits

This commit is contained in:
Chris Danford
2004-04-23 00:53:29 +00:00
parent e7983033a4
commit 83fb83d1b4
6 changed files with 30 additions and 5 deletions
+7 -1
View File
@@ -168,7 +168,10 @@ XNode* StepsID::CreateNode() const
pNode->AppendAttr( "StepsType", GameManager::NotesTypeToString(st) );
pNode->AppendAttr( "Difficulty", DifficultyToString(dc) );
if( dc == DIFFICULTY_EDIT )
{
pNode->AppendAttr( "Description", sDescription );
pNode->AppendAttr( "Hash", uHash );
}
return pNode;
}
@@ -186,7 +189,10 @@ void StepsID::LoadFromNode( const XNode* pNode )
dc = StringToDifficulty( sTemp );
if( dc == DIFFICULTY_EDIT )
pNode->GetChildValue("Description", sDescription);
{
pNode->GetAttrValue("Description", sDescription);
pNode->GetAttrValue("Hash", uHash);
}
}
bool StepsID::IsValid() const