Jazz2::Compatibility::JJ2Tileset class

Parses original .j2t tile set files.

Reads an original tile set, decoding its palette and per-tile image, alpha and collision mask data, and writes the converted tile set to the target path for use by the engine's tile maps.

Constructors, destructors, conversion operators

JJ2Tileset()
Creates a new instance.

Public functions

auto Open(StringView path, bool strictParser) -> bool
Opens and parses the specified tile set file.
void Convert(StringView targetPath) const
Converts the tile set and writes the result to the specified target path.
auto GetMaxSupportedTiles() const -> std::int32_t
Returns maximum number of supported tiles.

Constants

static std::int32_t BlockSize constexpr
Size of a tile.