mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: projects & replace builtins.list with 'base_packs' project property
This commit is contained in:
parent
1bdb5c3145
commit
6164374666
10 changed files with 89 additions and 14 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue