Convert MetatileParser into a namespace
This commit is contained in:
parent
bc2cc7d089
commit
c3718e28be
3 changed files with 4 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue