mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-02 04:46:42 -05:00
Merge pull request #352 from BigBahss/convert-to-namespace
Convert stateless classes into namespaces
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
|
||||
|
||||
@@ -4,22 +4,10 @@
|
||||
|
||||
#include <QList>
|
||||
#include <QRgb>
|
||||
#include <QString>
|
||||
|
||||
class PaletteUtil
|
||||
{
|
||||
public:
|
||||
PaletteUtil();
|
||||
namespace PaletteUtil {
|
||||
QList<QRgb> parse(QString filepath, bool *error);
|
||||
void writeJASC(QString filepath, QVector<QRgb> colors, int offset, int nColors);
|
||||
private:
|
||||
QList<QRgb> parsePal(QString filepath, bool *error);
|
||||
QList<QRgb> parseJASC(QString filepath, bool *error);
|
||||
QList<QRgb> parseAdvanceMapPal(QString filepath, bool *error);
|
||||
QList<QRgb> parseAdobeColorTable(QString filepath, bool *error);
|
||||
QList<QRgb> parseTileLayerPro(QString filepath, bool *error);
|
||||
QList<QRgb> parseAdvancePaletteEditor(QString filepath, bool *error);
|
||||
int clampColorValue(int value);
|
||||
};
|
||||
}
|
||||
|
||||
#endif // PALETTEUTIL_H
|
||||
|
||||
Reference in New Issue
Block a user