Jazz2::Compatibility::AnimSetMapping class

Maps indices from original data file to organized entries.

Provides the lookup tables used during animation and audio import that translate the original game's set/item indices (from Anims.j2a) into named categories, asset names and palette settings for the converted output. The mapping is built per JJ2Version.

Public types

struct Entry
Mapped entry.

Public static functions

static auto GetAnimMapping(JJ2Version version) -> AnimSetMapping
Returns mapping of animations for the specified version.
static auto GetSampleMapping(JJ2Version version) -> AnimSetMapping
Returns mapping of sounds for the specified version.

Public functions

auto Get(std::uint32_t set, std::uint32_t item) -> Entry*
Returns the entry for the specified set and item, or nullptr if not found.
auto GetByOrdinal(std::uint32_t index) -> Entry*
Returns the entry with the specified ordinal index, or nullptr if not found.

Constants

static char Discard constexpr
Specifies that the entry should be discarded.