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