class
#include <Jazz2/Compatibility/JJ2Level.h>
JJ2Level Parses original .j2l
level files.
Public types
- struct ExtraTilesetEntry
- Extra tileset used in the level.
- struct LevelToken
- Episode name and level name.
Public static variables
-
static std::
int32_t JJ2LayerCount constexpr - Number of layers in the original game.
-
static std::
int32_t TextEventStringsCount constexpr - Number of level text entries in the original game.
Constructors, destructors, conversion operators
- JJ2Level()
Public functions
- auto Open(StringView path, bool strictParser) -> bool
- void Convert(StringView targetPath, EventConverter& eventConverter, Function<LevelToken(StringView)>&& levelTokenConversion = {})
-
void AddLevelTokenTextID(std::
uint8_t textId) - auto GetVersion() const -> JJ2Version
- Returns target version of the level.
-
auto GetMaxSupportedTiles() const -> std::
int32_t - Returns maximum number of supported tiles.
-
auto GetMaxSupportedAnims() const -> std::
int32_t - Returns maximum number of supported animations.