2018-09-25 01:12:29 +01:00
|
|
|
#include "metatile.h"
|
|
|
|
#include "tileset.h"
|
2018-09-23 00:47:28 +01:00
|
|
|
#include "project.h"
|
|
|
|
|
|
|
|
Metatile::Metatile()
|
|
|
|
{
|
|
|
|
tiles = new QList<Tile>;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Metatile::getBlockIndex(int index) {
|
|
|
|
if (index < Project::getNumMetatilesPrimary()) {
|
|
|
|
return index;
|
|
|
|
} else {
|
|
|
|
return index - Project::getNumMetatilesPrimary();
|
|
|
|
}
|
|
|
|
}
|