[nostalgia/core] Fix TileSetEntry model
This commit is contained in:
parent
9c026e1a6c
commit
5972d8acef
@ -73,7 +73,7 @@ struct TileSheetSetEntrySection {
|
|||||||
|
|
||||||
oxModelBegin(TileSheetSetEntrySection)
|
oxModelBegin(TileSheetSetEntrySection)
|
||||||
oxModelField(begin)
|
oxModelField(begin)
|
||||||
oxModelField(size)
|
oxModelField(tiles)
|
||||||
oxModelEnd()
|
oxModelEnd()
|
||||||
|
|
||||||
struct TileSheetSetEntry {
|
struct TileSheetSetEntry {
|
||||||
@ -92,7 +92,7 @@ struct TileSheetSet {
|
|||||||
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.TileSheetSet";
|
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.TileSheetSet";
|
||||||
static constexpr auto TypeVersion = 1;
|
static constexpr auto TypeVersion = 1;
|
||||||
static constexpr auto Preloadable = true;
|
static constexpr auto Preloadable = true;
|
||||||
int bpp = 0;
|
int32_t bpp = 0;
|
||||||
ox::Vector<TileSheetSetEntry> entries;
|
ox::Vector<TileSheetSetEntry> entries;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -101,6 +101,8 @@ oxModelBegin(TileSheetSet)
|
|||||||
oxModelField(entries)
|
oxModelField(entries)
|
||||||
oxModelEnd()
|
oxModelEnd()
|
||||||
|
|
||||||
|
void addEntry(TileSheetSet &set, ox::FileAddress path, int32_t begin = 0, int32_t size = -1) noexcept;
|
||||||
|
|
||||||
ox::Error loadBgPalette(
|
ox::Error loadBgPalette(
|
||||||
Context &ctx,
|
Context &ctx,
|
||||||
size_t palBank,
|
size_t palBank,
|
||||||
|
Loading…
Reference in New Issue
Block a user