porymap/core/metatile.cpp
2018-09-24 19:12:29 -05:00

16 lines
315 B
C++

#include "metatile.h"
#include "tileset.h"
#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();
}
}