[nostalgia/core] Add a valid function for CompactTileSheet

This commit is contained in:
Gary Talent 2024-09-07 23:20:04 -05:00
parent 1d262597a8
commit 8dd837b359

View File

@ -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)