EpisodeFile.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::Editor
Classes
- struct Jazz2::Editor::EpisodeImage
- Image of an episode, RGBA pixels row by row.
- struct Jazz2::Editor::EpisodeFile
- An episode file (
.j2e) as the editor reads and writes it. - struct Jazz2::Editor::EpisodeLevelInfo
- What the editor needs to know of a level of an episode without loading it.
Functions
- auto SplitLevelReference(StringView reference, String& level) -> String
- Splits a reference to a level,
episode/levelor justlevelwithin the same episode. - auto FindLevelFile(StringView reference, StringView currentLevelName, ArrayView<const String> episodeRoots) -> String
- Finds the file of a level that a level refers to as its next, secret or bonus level.
Function documentation
String SplitLevelReference(StringView reference, String& level)
Splits a reference to a level, episode/level or just level within the same episode.
Returns the episode, empty if the reference has none, and the level in level, both in lower case.
String FindLevelFile(StringView reference, StringView currentLevelName, ArrayView<const String> episodeRoots)
Finds the file of a level that a level refers to as its next, secret or bonus level.
reference is episode/level, or just level within the episode of currentLevelName (episode/level). The file is looked for in episodeRoots, the Episodes directories in the order the game looks in them. Returns an empty string if the file doesn't exist, or if the reference is the end of the episode (:end).