LevelPackManifest struct
Record of an installed level pack.
Stored as Packs/<id>.json in the directory of level packs, written last when a pack is installed, so a pack without it isn't installed. The original files are stored once for all packs, see LevelPackLibrary.
Public static variables
-
static std::
int32_t FormatVersion constexpr - Version of the format of the file.
Public functions
- auto Read(StringView path) -> bool
- Reads the record from a file.
- auto Write(StringView path) const -> bool
- Writes the record into a file, the previous one is replaced only once it's complete.
- auto GetEpisodePrefix() const -> String
- Returns the episode of the levels of no episode,
+<id>. -
auto GetTotalSize() const -> std::
uint64_t - Returns the total size of the original files, including those shared with other packs.
- auto FindFile(StringView name) const -> const LevelPackFile*
- Returns a file by its name, or
nullptr.
Public variables
- String Id
- Identifier of the pack, the number in the level database or
local-<hash>. - String Source
- Where the pack came from,
digiexorlocal. - String Title
- Title of the pack.
- String Authors
- Authors of the pack.
- String Description
- Description of the pack.
- String Version
- Version of the pack in the level database.
- String ArchiveName
- File name of the archive the pack was installed from.
- String ArchiveSha256
- SHA-256 of the archive in hexadecimal.
-
std::
int64_t InstalledAt - Time of the installation, in seconds since 1970.
-
std::
uint32_t CacheVersion - Version of the cache the levels were converted with.
- SmallVector<LevelPackFile, 0> Files
- Original files of the pack.
- SmallVector<LevelPackLevel, 0> Levels
- Converted levels.
- SmallVector<LevelPackEpisode, 0> Episodes
- Converted episodes.
- SmallVector<String, 0> MissingAssets
- Tile sets and music the levels need, but neither the pack nor the game has.