#ifndef TILESET_H #define TILESET_H #include "metatile.h" #include "tile.h" #include class Tileset { public: Tileset(); public: QString name; QString is_compressed; QString is_secondary; QString padding; QString tiles_label; QString palettes_label; QString metatiles_label; QString metatiles_path; QString callback_label; QString metatile_attrs_label; QString metatile_attrs_path; QString tilesImagePath; QImage tilesImage; QList palettePaths; QList *tiles = nullptr; QList *metatiles = nullptr; QList> *palettes = nullptr; Tileset* copy(); static Tileset* getBlockTileset(int, Tileset*, Tileset*); static Metatile* getMetatile(int, Tileset*, Tileset*); static QList> getBlockPalettes(Tileset*, Tileset*); static QList getPalette(int, Tileset*, Tileset*); }; #endif // TILESET_H