17 lines
325 B
C++
17 lines
325 B
C++
![]() |
#include "core/metatile.h"
|
||
|
#include "project.h"
|
||
|
#include "core/tileset.h"
|
||
|
|
||
|
Metatile::Metatile()
|
||
|
{
|
||
|
tiles = new QList<Tile>;
|
||
|
}
|
||
|
|
||
|
int Metatile::getBlockIndex(int index) {
|
||
|
if (index < Project::getNumMetatilesPrimary()) {
|
||
|
return index;
|
||
|
} else {
|
||
|
return index - Project::getNumMetatilesPrimary();
|
||
|
}
|
||
|
}
|