Change all UtilityClass::something to help.something

This changes something like UtilityClass::String to help.String,
basically. It takes less typing this way, and is a neat effect of having
global args actually be global variables.
This commit is contained in:
Misa
2020-04-02 12:30:37 -07:00
committed by Ethan Lee
parent c8906d97f5
commit 6c6b6c68ff
8 changed files with 115 additions and 115 deletions

View File

@@ -1935,7 +1935,7 @@ void editorclass::save(std::string& _path)
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Created" );
meta->LinkEndChild( new TiXmlText( UtilityClass::String(version).c_str() ));
meta->LinkEndChild( new TiXmlText( help.String(version).c_str() ));
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Modified" );
@@ -1943,7 +1943,7 @@ void editorclass::save(std::string& _path)
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Modifiers" );
meta->LinkEndChild( new TiXmlText( UtilityClass::String(version).c_str() ));
meta->LinkEndChild( new TiXmlText( help.String(version).c_str() ));
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Desc1" );
@@ -1965,15 +1965,15 @@ void editorclass::save(std::string& _path)
data->LinkEndChild( msg );
msg = new TiXmlElement( "mapwidth" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(mapwidth).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(mapwidth).c_str() ));
data->LinkEndChild( msg );
msg = new TiXmlElement( "mapheight" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(mapheight).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(mapheight).c_str() ));
data->LinkEndChild( msg );
msg = new TiXmlElement( "levmusic" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(levmusic).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(levmusic).c_str() ));
data->LinkEndChild( msg );
//New save format
@@ -1982,7 +1982,7 @@ void editorclass::save(std::string& _path)
{
for(int x = 0; x < mapwidth*40; x++ )
{
contentsString += UtilityClass::String(contents[x + (maxwidth*40*y)]) + ",";
contentsString += help.String(contents[x + (maxwidth*40*y)]) + ",";
}
}
msg = new TiXmlElement( "contents" );
@@ -1995,7 +1995,7 @@ void editorclass::save(std::string& _path)
std::string contentsString;
for(int i = 0; i < contents.size(); i++ )
{
contentsString += UtilityClass::String(contents[i]) + ",";
contentsString += help.String(contents[i]) + ",";
}
msg = new TiXmlElement( "contents" );
msg->LinkEndChild( new TiXmlText( contentsString.c_str() ));