mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-23 17:16:17 -05:00
Convert MetatileParser into a namespace
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user