2015-11-23 23:19:57 +01:00
|
|
|
#ifndef MAPLIST_H
|
|
|
|
#define MAPLIST_H
|
|
|
|
|
2016-02-12 10:09:17 +01:00
|
|
|
#include <QString>
|
2015-11-23 23:19:57 +01:00
|
|
|
|
2018-03-09 23:24:08 +01:00
|
|
|
class Map;
|
2018-01-14 23:03:27 +01:00
|
|
|
|
2020-03-17 21:06:51 +01:00
|
|
|
class MapList
|
2015-11-23 23:19:57 +01:00
|
|
|
{
|
|
|
|
public:
|
2020-03-17 21:06:51 +01:00
|
|
|
static QList<Map*> loadMaps(const QString &path, QString &errorString);
|
2017-07-27 19:47:46 +02:00
|
|
|
static QString formats();
|
|
|
|
static QStringList filter();
|
|
|
|
|
2017-04-21 21:15:58 +02:00
|
|
|
private:
|
2020-03-17 21:06:51 +01:00
|
|
|
static Map *loadFile(const QString &path, QString &errorString,
|
|
|
|
bool *terminate);
|
|
|
|
static QList<Map*> loadDir(const QString &path, QString &errorString);
|
2015-11-23 23:19:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAPLIST_H
|