feat: projects & replace builtins.list with 'base_packs' project property

This commit is contained in:
MihailRis
2025-04-22 21:46:10 +03:00
parent 1bdb5c3145
commit 6164374666
10 changed files with 89 additions and 14 deletions
+6 -2
View File
@@ -8,6 +8,7 @@
#include "ContentLoader.hpp"
#include "PacksManager.hpp"
#include "objects/rigging.hpp"
#include "devtools/Project.hpp"
#include "logic/scripting/scripting.hpp"
#include "core_defs.hpp"
@@ -16,12 +17,15 @@ static void load_configs(Input& input, const io::path& root) {
}
ContentControl::ContentControl(
EnginePaths& paths, Input& input, std::function<void()> postContent
const Project& project,
EnginePaths& paths,
Input& input,
std::function<void()> postContent
)
: paths(paths),
input(input),
postContent(std::move(postContent)),
basePacks(io::read_list("res:config/builtins.list")),
basePacks(project.basePacks),
manager(std::make_unique<PacksManager>()) {
manager->setSources({
"world:content",