Jazz2::LevelDescriptor struct

Contains all components to fully initialize a level instance.

Produced when a level file is loaded and consumed by the level handler during setup. Bundles the parsed tile map and event map together with metadata such as display name, next/secret level names, music, ambient color, weather, water level and level texts.

Public variables

String FullPath
Full path.
String DisplayName
Display name.
String NextLevel
Next level name.
String SecretLevel
Secret level name.
String BonusLevel
Bonus level name.
std::unique_ptr<Tiles::TileMap> TileMap
Tile map.
std::unique_ptr<Events::EventMap> EventMap
Event map.
String MusicPath
Music file path.
Vector4f AmbientColor
Ambient color.
WeatherType Weather
Weather type.
std::uint8_t WeatherIntensity
Weather intensity.
std::uint16_t WaterLevel
Water level.
SmallVector<String, 0> LevelTexts
Level texts.
SmallVector<LocalizedLevelTexts, 0> LocalizedTexts
Level texts translated to other languages, empty if the level has none.
SmallVector<String, 0> ScriptTexts
Level texts as the original game had them, for the script of the level, empty if it has none (see Formats::ScriptDataChunk).
WeaponsDescription Weapons
Weapons of the level (see Formats::WeaponsChunk).
SmallVector<std::uint8_t, 0> SpriteRecolors
Sprites the level recolors for its script, empty if it has none (see Formats::ScriptDataChunk).
Formats::LevelSettingsChunk::Settings Settings
Settings the properties of the level have no room for (see Formats::LevelSettingsChunk).
SmallVector<Formats::TileDiffuseOverride, 0> TileDiffuseOverrides
Tile images the level replaces, which scripts read instead of those of the tile sets.