diff --git a/src/nostalgia/modules/core/include/nostalgia/core/tilesheet.hpp b/src/nostalgia/modules/core/include/nostalgia/core/tilesheet.hpp index a1012dc5..fc31a47a 100644 --- a/src/nostalgia/modules/core/include/nostalgia/core/tilesheet.hpp +++ b/src/nostalgia/modules/core/include/nostalgia/core/tilesheet.hpp @@ -302,6 +302,11 @@ struct CompactTileSheetV1 { ox::Vector pixels; }; +[[nodiscard]] +constexpr bool valid(CompactTileSheetV1 const&ts) noexcept { + return ts.bpp == 4 || ts.bpp == 8; +} + using CompactTileSheet = CompactTileSheetV1; oxModelBegin(TileSheetV1)