[nostalgia/core] Add a valid function for CompactTileSheet
This commit is contained in:
parent
1d262597a8
commit
8dd837b359
@ -302,6 +302,11 @@ struct CompactTileSheetV1 {
|
||||
ox::Vector<uint8_t> pixels;
|
||||
};
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr bool valid(CompactTileSheetV1 const&ts) noexcept {
|
||||
return ts.bpp == 4 || ts.bpp == 8;
|
||||
}
|
||||
|
||||
using CompactTileSheet = CompactTileSheetV1;
|
||||
|
||||
oxModelBegin(TileSheetV1)
|
||||
|
Loading…
Reference in New Issue
Block a user