Convert MetatileParser into a namespace

This commit is contained in:
BigBahss 2021-02-18 03:38:34 -05:00
parent bc2cc7d089
commit c3718e28be
3 changed files with 4 additions and 13 deletions

View file

@ -4,13 +4,9 @@
#include "metatile.h"
#include <QList>
#include <QString>
class MetatileParser
{
public:
MetatileParser();
namespace MetatileParser {
QList<Metatile*> parse(QString filepath, bool *error, bool primaryTileset);
};
}
#endif // METATILEPARSER_H

View file

@ -2,11 +2,7 @@
#include "config.h"
#include "log.h"
#include "project.h"
MetatileParser::MetatileParser()
{
}
#include <QString>
QList<Metatile*> MetatileParser::parse(QString filepath, bool *error, bool primaryTileset)
{

View file

@ -878,9 +878,8 @@ void TilesetEditor::importTilesetMetatiles(Tileset *tileset, bool primary)
return;
}
MetatileParser parser;
bool error = false;
QList<Metatile*> metatiles = parser.parse(filepath, &error, primary);
QList<Metatile*> metatiles = MetatileParser::parse(filepath, &error, primary);
if (error) {
QMessageBox msgBox(this);
msgBox.setText("Failed to import metatiles from Advance Map 1.92 .bvd file.");