diff --git a/doc/en/main-page.md b/doc/en/main-page.md index 06636ea0..4d487f5a 100644 --- a/doc/en/main-page.md +++ b/doc/en/main-page.md @@ -1,6 +1,8 @@ # Documentation -Documentation for the engine of version 0.24. +Documentation for the engine of in-development version 0.25. + +[Documentation for stable release 0.24.x.](https://github.com/MihailRis/VoxelEngine-Cpp/blob/release-0.24/doc/en/main-page.md) ## Sections diff --git a/doc/ru/content-packs.md b/doc/ru/content-packs.md index 33d46ffb..77a78636 100644 --- a/doc/ru/content-packs.md +++ b/doc/ru/content-packs.md @@ -22,6 +22,8 @@ } ``` +Вместо `creator` можно указать массив `creators` + Уровни зависимостей указываются с помощью префиксов в имени: - '!' - обязательная зависимость - '?' - опциональная зависимость diff --git a/doc/ru/main-page.md b/doc/ru/main-page.md index 30445fb6..800415c6 100644 --- a/doc/ru/main-page.md +++ b/doc/ru/main-page.md @@ -1,6 +1,8 @@ # Документация -Документация движка версии 0.24. +Документация движка разрабатываемой версии 0.25. + +[Документация стабильной версии 0.24.x.](https://github.com/MihailRis/VoxelEngine-Cpp/blob/release-0.24/doc/ru/main-page.md) ## Разделы diff --git a/src/content/ContentPack.cpp b/src/content/ContentPack.cpp index 777e8ae1..166400c6 100644 --- a/src/content/ContentPack.cpp +++ b/src/content/ContentPack.cpp @@ -76,8 +76,19 @@ ContentPack ContentPack::read(const fs::path& folder) { root.at("id").get(pack.id); root.at("title").get(pack.title); root.at("version").get(pack.version); - root.at("creator").get(pack.creator); + if (root.has("creators")) { + const auto& creators = root["creators"]; + for (int i = 0; i < creators.size(); i++) { + if (i > 0) { + pack.creator += ", "; + } + pack.creator += creators[i].asString(); + } + } else { + root.at("creator").get(pack.creator); + } root.at("description").get(pack.description); + root.at("source").get(pack.source); pack.folder = folder; if (auto found = root.at("dependencies")) { diff --git a/src/content/ContentPack.hpp b/src/content/ContentPack.hpp index 5aa1a22b..9d25d752 100644 --- a/src/content/ContentPack.hpp +++ b/src/content/ContentPack.hpp @@ -44,6 +44,7 @@ struct ContentPack { std::string description = "no description"; fs::path folder; std::vector dependencies; + std::string source = ""; fs::path getContentFile() const;