mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-06-01 19:08:05 -04:00
32 lines
618 B
C++
32 lines
618 B
C++
#ifndef TILEREFERENCE_H
|
|
#define TILEREFERENCE_H
|
|
|
|
#include "common.h"
|
|
|
|
class tileReference
|
|
{
|
|
public:
|
|
tileReference();
|
|
virtual ~tileReference();
|
|
|
|
int id;
|
|
Uint8 rawData[16];
|
|
Uint8 palette[4];
|
|
|
|
bool compareEqual(tileReference& t);
|
|
void load(fstream& file);
|
|
void save(fstream& file);
|
|
|
|
void readID(string s, bool useHex);
|
|
string writeID(bool useHex);
|
|
void readPalette(string s);
|
|
string writePalette();
|
|
tileReference clone();
|
|
|
|
protected:
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // TILEREFERENCE_H
|