Cleanup.
This commit is contained in:
@@ -43,11 +43,11 @@ Difficulty StringToDifficulty( const RString& sDC )
|
|||||||
else if( s2 == "maniac" ) return Difficulty_Hard;
|
else if( s2 == "maniac" ) return Difficulty_Hard;
|
||||||
else if( s2 == "heavy" ) return Difficulty_Hard;
|
else if( s2 == "heavy" ) return Difficulty_Hard;
|
||||||
else if( s2 == "smaniac" ) return Difficulty_Challenge;
|
else if( s2 == "smaniac" ) return Difficulty_Challenge;
|
||||||
else if( s2 == "challenge" )return Difficulty_Challenge;
|
else if( s2 == "challenge" ) return Difficulty_Challenge;
|
||||||
else if( s2 == "expert" ) return Difficulty_Challenge;
|
else if( s2 == "expert" ) return Difficulty_Challenge;
|
||||||
else if( s2 == "oni" ) return Difficulty_Challenge;
|
else if( s2 == "oni" ) return Difficulty_Challenge;
|
||||||
else if( s2 == "edit" ) return Difficulty_Edit;
|
else if( s2 == "edit" ) return Difficulty_Edit;
|
||||||
else return Difficulty_Invalid;
|
else return Difficulty_Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -312,16 +312,16 @@ void StepsID::LoadFromNode( const XNode* pNode )
|
|||||||
|
|
||||||
RString sTemp;
|
RString sTemp;
|
||||||
|
|
||||||
pNode->GetAttrValue("StepsType", sTemp);
|
pNode->GetAttrValue( "StepsType", sTemp );
|
||||||
st = GameManager::StringToStepsType( sTemp );
|
st = GameManager::StringToStepsType( sTemp );
|
||||||
|
|
||||||
pNode->GetAttrValue("Difficulty", sTemp);
|
pNode->GetAttrValue( "Difficulty", sTemp );
|
||||||
dc = StringToDifficulty( sTemp );
|
dc = StringToDifficulty( sTemp );
|
||||||
|
|
||||||
if( dc == Difficulty_Edit )
|
if( dc == Difficulty_Edit )
|
||||||
{
|
{
|
||||||
pNode->GetAttrValue("Description", sDescription);
|
pNode->GetAttrValue( "Description", sDescription );
|
||||||
pNode->GetAttrValue("Hash", uHash);
|
pNode->GetAttrValue( "Hash", uHash );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -332,8 +332,8 @@ void StepsID::LoadFromNode( const XNode* pNode )
|
|||||||
|
|
||||||
RString StepsID::ToString() const
|
RString StepsID::ToString() const
|
||||||
{
|
{
|
||||||
RString s = GameManager::StepsTypeToString(st);
|
RString s = GameManager::StepsTypeToString( st );
|
||||||
s += " " + DifficultyToString(dc);
|
s += " " + DifficultyToString( dc );
|
||||||
if( dc == Difficulty_Edit )
|
if( dc == Difficulty_Edit )
|
||||||
{
|
{
|
||||||
s += " " + sDescription;
|
s += " " + sDescription;
|
||||||
|
|||||||
@@ -50,17 +50,17 @@ void TrailID::LoadFromNode( const XNode* pNode )
|
|||||||
|
|
||||||
RString sTemp;
|
RString sTemp;
|
||||||
|
|
||||||
pNode->GetAttrValue("StepsType", sTemp);
|
pNode->GetAttrValue( "StepsType", sTemp );
|
||||||
st = GameManager::StringToStepsType( sTemp );
|
st = GameManager::StringToStepsType( sTemp );
|
||||||
|
|
||||||
pNode->GetAttrValue("CourseDifficulty", sTemp);
|
pNode->GetAttrValue( "CourseDifficulty", sTemp );
|
||||||
cd = StringToDifficulty( sTemp );
|
cd = StringToDifficulty( sTemp );
|
||||||
}
|
}
|
||||||
|
|
||||||
RString TrailID::ToString() const
|
RString TrailID::ToString() const
|
||||||
{
|
{
|
||||||
RString s = GameManager::StepsTypeToString(st);
|
RString s = GameManager::StepsTypeToString( st );
|
||||||
s += " " + DifficultyToString(cd);
|
s += " " + DifficultyToString( cd );
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user