[nostalgia/core] Rename NostalgiaGraphic and NostalgiaPalette to TileSheet and Palette

This commit is contained in:
2022-02-16 20:25:00 -06:00
parent 75f0b3a606
commit 462375aa5d
10 changed files with 35 additions and 35 deletions
+5 -5
View File
@@ -29,13 +29,13 @@ enum class TileSheetSpace {
Sprite
};
struct NostalgiaPalette {
struct Palette {
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.NostalgiaPalette";
static constexpr auto TypeVersion = 1;
ox::Vector<Color16> colors;
};
struct NostalgiaGraphic {
struct TileSheet {
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.NostalgiaGraphic";
static constexpr auto TypeVersion = 1;
int8_t bpp = 0;
@@ -43,7 +43,7 @@ struct NostalgiaGraphic {
int rows = 1;
int columns = 1;
ox::FileAddress defaultPalette;
NostalgiaPalette pal;
Palette pal;
ox::Vector<uint8_t> pixels;
[[nodiscard]]
@@ -110,11 +110,11 @@ struct NostalgiaGraphic {
}
};
oxModelBegin(NostalgiaPalette)
oxModelBegin(Palette)
oxModelField(colors)
oxModelEnd()
oxModelBegin(NostalgiaGraphic)
oxModelBegin(TileSheet)
oxModelField(bpp)
oxModelField(rows)
oxModelField(columns)