JJ2Episode class
#include <Jazz2/Compatibility/JJ2Episode.h>
Parses original .j2e/.j2pe episode files.
Reads an original episode definition, including its ordering, level chain and title/preview images, and writes the converted episode metadata and images to the target path. Level and episode names can be remapped through the supplied conversion callbacks.
Constructors, destructors, conversion operators
- JJ2Episode()
- Creates a new instance.
-
JJ2Episode(StringView name,
StringView displayName,
StringView firstLevel,
std::
int32_t position) - Creates a new instance with the specified properties.
Public functions
- auto Open(StringView path) -> bool
- Opens and parses the specified episode file.
-
void Convert(StringView targetPath,
Function<JJ2Level::
LevelToken(StringView)>&& levelTokenConversion = {}, Function<String(JJ2Episode*)>&& episodeNameConversion = {}, Function<Pair<String, String>(JJ2Episode*)>&& episodePrevNext = {}) - Converts the episode and writes the result to the specified target path.
Public variables
-
std::
int32_t Position - Sort position of the episode.
- String Name
- Internal name of the episode.
- String DisplayName
- Display name of the episode.
- String FirstLevel
- Name of the first level in the episode.
- String PreviousEpisode
- Name of the previous episode.
- String NextEpisode
- Name of the next episode.
-
std::
int32_t ImageWidth - Width of the episode image in pixels.
-
std::
int32_t ImageHeight - Height of the episode image in pixels.
-
std::
unique_ptr<std:: uint8_t[]> ImageData - Raw episode image data.
-
std::
int32_t TitleWidth - Width of the episode title image in pixels.
-
std::
int32_t TitleHeight - Height of the episode title image in pixels.
-
std::
unique_ptr<std:: uint8_t[]> TitleData - Raw episode title image data.