01c6d09bc2
Metatiles can be given a name. The name becomes a constant in includes/contstants/metatile_labels.h. The plan is to be able to reference metatiles in code using a macro like `METATILE(Building, TV_ON, Primary)`, which will evaluate to the value 0x003, or `METATILE(BrendansMaysHouse, MOVING_BOX_OPEN, Secondary)`, which will evaluate to the value 0x270.
23 lines
358 B
C++
23 lines
358 B
C++
#ifndef METATILE_H
|
|
#define METATILE_H
|
|
|
|
#include "tile.h"
|
|
#include <QImage>
|
|
#include <QString>
|
|
|
|
class Metatile
|
|
{
|
|
public:
|
|
Metatile();
|
|
public:
|
|
QList<Tile> *tiles = nullptr;
|
|
uint8_t behavior;
|
|
uint8_t layerType;
|
|
QString label;
|
|
|
|
Metatile *copy();
|
|
void copyInPlace(Metatile*);
|
|
static int getBlockIndex(int);
|
|
};
|
|
|
|
#endif // METATILE_H
|