Jazz2::Editor::TileSource struct

The tile set a source of tiles of a level takes them from, see ResolveTileSource().

A tile of the source is the tile Offset + TileRef::Index of the tile set.

Public functions

auto IsEmbedded() const -> bool
Returns true if the tile set is stored in the level itself.

Public variables

StringView Name
Name of the tile set.
std::int32_t Offset
The first tile of the source in the tile set.
const Formats::ExtraTileSetRecord* Extra
Record of the extra tile set, nullptr for the default tile set.
const std::uint8_t* Remapping
Table that matches the palette indices of the 8-bit tiles of the tile set to the palette of the level.

Variable documentation

const std::uint8_t* Jazz2::Editor::TileSource::Remapping

Table that matches the palette indices of the 8-bit tiles of the tile set to the palette of the level.

nullptr if they're shown as they are — the default tile set, a tile set that isn't matched, and one with true color tiles, which isn't matched to the palette of the level.